git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77e2906)
Fix network_spgist.c build failures from missing AF_INET definition.
2016年8月23日 20:25:35 +0000 (16:25 -0400)
2016年8月23日 20:25:35 +0000 (16:25 -0400)
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.


diff --git a/src/backend/utils/adt/network_spgist.c b/src/backend/utils/adt/network_spgist.c
index 708ae899ac62ac5bbc394150bcea997f33b8fd4f..a198a83973b8ff95e99180140679d881b6a0e465 100644 (file)
--- 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"
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /