From: Tom Lane Date: Tue, 23 Aug 2016 20:25:35 +0000 (-0400) Subject: Fix network_spgist.c build failures from missing AF_INET definition. X-Git-Tag: jit-before-rebase-2017-11-03~2814 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=32909a57f9fb131eab8971a6d9845b55bbcb9091;p=users%2Fandresfreund%2Fpostgres.git Fix network_spgist.c build failures from missing AF_INET definition. AF_INET is apparently defined in something that's pulled in automatically on Linux, but the buildfarm says that's not true everywhere. Comparing to network_gist.c suggests that including ought to fix it, and the POSIX standard concurs. --- diff --git a/src/backend/utils/adt/network_spgist.c b/src/backend/utils/adt/network_spgist.c index 708ae899ac..a198a83973 100644 --- a/src/backend/utils/adt/network_spgist.c +++ b/src/backend/utils/adt/network_spgist.c @@ -31,6 +31,8 @@ */ #include "postgres.h" +#include + #include "access/spgist.h" #include "catalog/pg_type.h" #include "utils/inet.h"