diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-07 10:46:50 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-07 10:46:50 -0700 |
| commit | c20471e4657777e98bb8431536bc9797ce0a5a2d (patch) | |
| tree | 326c76d0d50aaebab37d5cb219d2fa704b7fe07f | |
| parent | e2e22932cd9c684ab536f662eecb278ed23fe9fe (diff) | |
| parent | 35ec1e22452fa9e56e81f53bd91ef688ad3b6624 (diff) | |
| download | git-c20471e4657777e98bb8431536bc9797ce0a5a2d.tar.gz | |
Merge branch 'bs/bsd-wo-specific-xopen-source'
Build fix for BSDs.
* bs/bsd-wo-specific-xopen-source:
compat: fixes for header handling with OpenBSD / NetBSD
| -rw-r--r-- | compat/posix.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compat/posix.h b/compat/posix.h index f4c71f9427..067a00f33b 100644 --- a/compat/posix.h +++ b/compat/posix.h @@ -60,11 +60,11 @@ # else # define _XOPEN_SOURCE 500 # endif -#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && \ - !defined(_M_UNIX) && !defined(__sgi) && !defined(__DragonFly__) && \ - !defined(__TANDEM) && !defined(__QNX__) && !defined(__MirBSD__) && \ - !defined(__CYGWIN__) -#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */ +#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \ + !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__MirBSD__) && \ + !defined(__USLC__) && !defined(_M_UNIX) && !defined(__sgi) && \ + !defined(__TANDEM) && !defined(__QNX__) && !defined(__CYGWIN__) +#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500 */ #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */ #endif #define _ALL_SOURCE 1 |
