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.
This commit is contained in:
Tom Lane 2016-08-23 16:25:35 -04:00
parent 77e2906821
commit 32909a57f9

View File

@ -31,6 +31,8 @@
*/ */
#include "postgres.h" #include "postgres.h"
#include <sys/socket.h>
#include "access/spgist.h" #include "access/spgist.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "utils/inet.h" #include "utils/inet.h"