diff options
author | Terje Sten Bjerkseth <terje@bjerkseth.org> | 2006-12-20 17:32:21 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-20 17:59:22 -0800 |
commit | c902c9a608c1b727160d6fbb04fa363d9418cd00 (patch) | |
tree | ddf7e44b23def4c406bab38ed04292186b696ec2 /git-compat-util.h | |
parent | 5b85143ba548c6c0c35df5e606ee3568c55ca0da (diff) | |
download | git-c902c9a608c1b727160d6fbb04fa363d9418cd00.tar.gz git-c902c9a608c1b727160d6fbb04fa363d9418cd00.tar.xz |
Fix system header problems on Mac OS X
For Mac OS X 10.4, _XOPEN_SOURCE defines _POSIX_C_SOURCE which
hides many symbols from the program.
Breakage noticed and initial analysis provided by Randal
L. Schwartz.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index bc296b3a4..41fa7f67b 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -11,8 +11,10 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) +#ifndef __APPLE_CC__ #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 |