[vala/staging] linux: Add feature_test_macros to non-POSIX file control constants and dup3



commit 224db20bf7fbbd9c5195680232382ea11ff6e2f7
Author: Dr. Michael Lauer <mickey vanille-media de>
Date:   Tue Feb 20 16:51:11 2018 +0100

    linux: Add feature_test_macros to non-POSIX file control constants and dup3
    
    https://bugzilla.gnome.org/show_bug.cgi?id=793444

 vapi/linux.vapi |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index f65a36e..f1f8573 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]