diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-23 16:25:35 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-23 16:25:35 -0400 |
commit | 32909a57f9fb131eab8971a6d9845b55bbcb9091 (patch) | |
tree | a3b779595004cb6bbf261899f097b73a5695cd30 /src/backend/utils/adt/network_spgist.c | |
parent | 77e2906821e2aec3c0807866a84c2934feeac8be (diff) | |
download | postgresql-32909a57f9fb131eab8971a6d9845b55bbcb9091.tar.gz postgresql-32909a57f9fb131eab8971a6d9845b55bbcb9091.zip |
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 <sys/socket.h> ought to fix it,
and the POSIX standard concurs.
Diffstat (limited to 'src/backend/utils/adt/network_spgist.c')
-rw-r--r-- | src/backend/utils/adt/network_spgist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/adt/network_spgist.c b/src/backend/utils/adt/network_spgist.c index 708ae899ac6..a198a83973b 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 <sys/socket.h> + #include "access/spgist.h" #include "catalog/pg_type.h" #include "utils/inet.h" |