X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/e2641e09cc0daf44f63f654230f72d22acf3a9af..a1b1c1ea3adb864c8c2e3feb4eaed890a9b505cf:/src/fmacros.h?ds=inline diff --git a/src/fmacros.h b/src/fmacros.h index 38f46482..3e548765 100644 --- a/src/fmacros.h +++ b/src/fmacros.h @@ -3,7 +3,11 @@ #define _BSD_SOURCE -#ifdef __linux__ +#if defined(__linux__) +#define _GNU_SOURCE +#endif + +#if defined(__linux__) || defined(__OpenBSD__) #define _XOPEN_SOURCE 700 #else #define _XOPEN_SOURCE