_XOPEN_SOURCE problem also exists on FreeBSD
Suggested by Rocco Rutte, Marco Roeland and others. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Dec 21, 2006 at 22:51 UTC
a01c9c28a576fbf3cd7caa4423dae4858a5ae6f5
1 file changed
+1
-1
git-compat-util.h
+1
-1
@@ -11,7 +11,7 @@
11
12
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
13
14
-#ifndef __APPLE_CC__
14
+#if !defined(__APPLE__) && !defined(__FreeBSD)
15
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
16
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
17
#endif