Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Set _ALL_SOURCE for AIX, but avoid its struct list.
author
Jason Riedy
<ejr@EECS.Berkeley.EDU>
Tue, 16 Jan 2007 01:34:49 +0000
(17:34 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 16 Jan 2007 06:22:24 +0000
(22:22 -0800)
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>
git-compat-util.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
5ab9cc8
)
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 8781e8e22d575c155967c8766f5d74835c0b1f78..8d244d0d925d4d0848941988f09b7f58fdc0835e 100644
(file)
--- 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 _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>
#include <unistd.h>
#include <stdio.h>
@@
-45,7
+46,9
@@
#include <arpa/inet.h>
#include <netdb.h>
#include <pwd.h>
#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>
#include <grp.h>
+#define _ALL_SOURCE 1
#ifndef NO_ICONV
#include <iconv.h>
#ifndef NO_ICONV
#include <iconv.h>