summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-22 06:51:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-22 06:56:26 (GMT)
commita01c9c28a576fbf3cd7caa4423dae4858a5ae6f5 (patch)
treecbaf58336492177dd51325c8bdb21546fdc1a13b /git-compat-util.h
parentd41cb273d313a21979b05dba57d0c6b565b28ba6 (diff)
downloadgit-a01c9c28a576fbf3cd7caa4423dae4858a5ae6f5.zip
git-a01c9c28a576fbf3cd7caa4423dae4858a5ae6f5.tar.gz
git-a01c9c28a576fbf3cd7caa4423dae4858a5ae6f5.tar.bz2
_XOPEN_SOURCE problem also exists on FreeBSD
Suggested by Rocco Rutte, Marco Roeland and others. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 41fa7f6..c66e0a4 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -11,7 +11,7 @@
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
-#ifndef __APPLE_CC__
+#if !defined(__APPLE__) && !defined(__FreeBSD)
#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