Explorar el Código

_GNU_SOURCE implies all BSD features except ones GNU rejects

Rich Felker hace 12 años
padre
commit
96601e3c61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/unistd.h

+ 1 - 1
include/unistd.h

@@ -13,7 +13,7 @@ extern "C" {
 #define SEEK_CUR 1
 #define SEEK_END 2
 
-#if defined(_BSD_SOURCE)
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define L_SET 0
 #define L_INCR 1
 #define L_XTND 2