aboutsummaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJason Riedy <ejr@EECS.Berkeley.EDU>2007-01-15 17:34:49 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-15 22:22:24 -0800
commitfb9522062c89da61f5ccbaa1d063e0754463176f (patch)
tree5f87b57dda6e9033f65b99e8c8bc32992931ad1b /git-compat-util.h
parent5ab9cc86ae7a3410d34d3d251877057103945513 (diff)
downloadgit-fb9522062c89da61f5ccbaa1d063e0754463176f.tar.gz
git-fb9522062c89da61f5ccbaa1d063e0754463176f.tar.xz
Set _ALL_SOURCE for AIX, but avoid its struct list.
AIX 5.3 seems to need _ALL_SOURCE for struct addrinfo, but that introduces a struct list in grp.h. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 8781e8e22..8d244d0d9 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -15,8 +15,9 @@
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#endif
-#define _GNU_SOURCE
-#define _BSD_SOURCE
+#define _ALL_SOURCE 1
+#define _GNU_SOURCE 1
+#define _BSD_SOURCE 1
#include <unistd.h>
#include <stdio.h>
@@ -45,7 +46,9 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <pwd.h>
+#undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
#include <grp.h>
+#define _ALL_SOURCE 1
#ifndef NO_ICONV
#include <iconv.h>