From: Junio C Hamano Date: Fri, 22 Dec 2006 06:51:42 +0000 (-0800) Subject: _XOPEN_SOURCE problem also exists on FreeBSD X-Git-Tag: v1.5.0-rc0~41 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a01c9c28a576fbf3cd7caa4423dae4858a5ae6f5;p=git.git _XOPEN_SOURCE problem also exists on FreeBSD Suggested by Rocco Rutte, Marco Roeland and others. Signed-off-by: Junio C Hamano --- diff --git a/git-compat-util.h b/git-compat-util.h index 41fa7f67b..c66e0a424 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