Index: src/OFFile.m ================================================================== --- src/OFFile.m +++ src/OFFile.m @@ -13,15 +13,14 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 500 - -#include "config.h" - +#define _XOPEN_SOURCE 600 #define __NO_EXT_QNX + +#include "config.h" /* Work around a bug with Clang + glibc */ #ifdef __clang__ # define _HAVE_STRING_ARCH_strcmp #endif Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -13,11 +13,11 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #define OF_THREAD_M -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #define __NO_EXT_QNX #include "config.h" #include