_GNU_SOURCE implies all BSD features except ones GNU rejects
authorRich Felker <dalias@aerifal.cx>
Wed, 23 May 2012 02:07:42 +0000 (22:07 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 23 May 2012 02:07:42 +0000 (22:07 -0400)
include/unistd.h

index 37671fa4e3a84542e5133acc872d8741ebdccf43..9287338cb2a1c5faaeae30b17585184e525ab3ba 100644 (file)
@@ -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