Explorar el Código

Add check for _XOPEN_SOURCE already being defined

Neil Jensen hace 9 años
padre
commit
13a775902b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -32,7 +32,7 @@
 #if defined(__GNUC__) && !defined(_GNU_SOURCE)
 #define _GNU_SOURCE /* for setgroups() */
 #endif
-#ifdef __linux__
+#if defined(__linux__) && !defined(_XOPEN_SOURCE)
 #define _XOPEN_SOURCE 600 /* For flockfile() on Linux */
 #endif
 #ifndef _LARGEFILE_SOURCE