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.
index 708ae899ac62ac5bbc394150bcea997f33b8fd4f..a198a83973b8ff95e99180140679d881b6a0e465 100644 (file)
*/
#include "postgres.h"
+#include <sys/socket.h>
+
#include "access/spgist.h"
#include "catalog/pg_type.h"
#include "utils/inet.h"