]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: Add feature_test_macros to non-POSIX file control constants and dup3
authorDr. Michael Lauer <mickey@vanille-media.de>
Tue, 20 Feb 2018 15:51:11 +0000 (16:51 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 20 Feb 2018 21:16:24 +0000 (22:16 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=793444

vapi/linux.vapi

index f65a36ef2e93f9a1fe735f101e3fd996a2d1ca8b..f1f857321181d8f8a591a607a8c57cdac0e5b318 100644 (file)
@@ -833,13 +833,13 @@ namespace Linux {
     }
 
     // Non-Posix file control constants, -D _GNU_SOURCE
-    [CCode (cheader_filename = "fcntl.h")]
+    [CCode (cheader_filename = "fcntl.h", feature_test_macro = "_GNU_SOURCE")]
     public const int O_DIRECT;
-    [CCode (cheader_filename = "fcntl.h")]
+    [CCode (cheader_filename = "fcntl.h", feature_test_macro = "_GNU_SOURCE")]
     public const int O_NOATIME;
-    [CCode (cheader_filename = "fcntl.h")]
+    [CCode (cheader_filename = "fcntl.h", feature_test_macro = "_GNU_SOURCE")]
     public const int O_PATH;
-    [CCode (cheader_filename = "fcntl.h")]
+    [CCode (cheader_filename = "fcntl.h", feature_test_macro = "_GNU_SOURCE")]
     public const int O_TMPFILE;
 
     /*
@@ -1059,7 +1059,7 @@ namespace Linux {
       public void symbols_fd (void*[] buffer, int fd);
     }
 
-    [CCode (cheader_filename = "unistd.h")]
+    [CCode (cheader_filename = "unistd.h", feature_test_macro = "_GNU_SOURCE")]
     public int dup3 (int oldfd, int newfd, int flags);
     [CCode (cheader_filename = "unistd.h")]
     public int sethostname (string name, size_t len);