Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Fix system header problems on Mac OS X
author
Terje Sten Bjerkseth
<terje@bjerkseth.org>
Thu, 21 Dec 2006 01:32:21 +0000
(17:32 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 21 Dec 2006 01:59:22 +0000
(17:59 -0800)
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>
git-compat-util.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
5b85143
)
diff --git
a/git-compat-util.h
b/git-compat-util.h
index bc296b3a45708296c3f14f5af53624801045e554..41fa7f67bc0feaecad34f64411e1862d1a10122a 100644
(file)
--- 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