From fb9522062c89da61f5ccbaa1d063e0754463176f Mon Sep 17 00:00:00 2001 From: Jason Riedy Date: Mon, 15 Jan 2007 17:34:49 -0800 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- git-compat-util.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/git-compat-util.h b/git-compat-util.h index 8781e8e22d..8d244d0d92 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 #include @@ -45,7 +46,9 @@ #include #include #include +#undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */ #include +#define _ALL_SOURCE 1 #ifndef NO_ICONV #include -- 2.11.4.GIT