[vala/staging: 4/5] linux: Add feature_test_macros to non-POSIX file control constants and dup3
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 4/5] linux: Add feature_test_macros to non-POSIX file control constants and dup3
- Date: Tue, 20 Feb 2018 21:53:04 +0000 (UTC)
commit 80dcd7dd205a977c2570d5966cf1993416278d85
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]