Skip to content

Commit a01c9c2

Browse files
author
Junio C Hamano
committed
_XOPEN_SOURCE problem also exists on FreeBSD
Suggested by Rocco Rutte, Marco Roeland and others. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent d41cb27 commit a01c9c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
1313

14-
#ifndef __APPLE_CC__
14+
#if !defined(__APPLE__) && !defined(__FreeBSD)
1515
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
1616
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
1717
#endif

0 commit comments

Comments
 (0)