From: Dr. Michael Lauer Date: Tue, 20 Feb 2018 15:51:11 +0000 (+0100) Subject: linux: Add feature_test_macros to non-POSIX file control constants and dup3 X-Git-Tag: 0.39.92~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80dcd7dd205a977c2570d5966cf1993416278d85;p=thirdparty%2Fvala.git linux: Add feature_test_macros to non-POSIX file control constants and dup3 https://bugzilla.gnome.org/show_bug.cgi?id=793444 --- diff --git a/vapi/linux.vapi b/vapi/linux.vapi index f65a36ef2..f1f857321 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);