X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/96ffb2fe97c3e77879e7a4f6f7457397a18bf233..d310fbedabd3101505b694f5c25a2e48480a3c2b:/src/fmacros.h?ds=sidebyside 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