Fix FTBFS on kFreeBSD

Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
This commit is contained in:
Chris Lamb 2024-04-02 10:19:05 +03:00 committed by Drew DeVault
parent 8a0059a229
commit 5f400152aa

View File

@ -19,7 +19,7 @@
#define _ALL_SOURCE #define _ALL_SOURCE
#endif #endif
#if defined(__linux__) || defined(__OpenBSD__) #if defined(__linux__) || defined(__OpenBSD__) || defined(__GLIBC__)
#define _XOPEN_SOURCE 700 #define _XOPEN_SOURCE 700
/* /*
* On NetBSD, _XOPEN_SOURCE undefines _NETBSD_SOURCE and * On NetBSD, _XOPEN_SOURCE undefines _NETBSD_SOURCE and