diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-03-24 14:06:14 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-03-24 14:07:48 +0100 |
commit | 0277ea722d37cebbe14a027441cde080f93c67e3 (patch) | |
tree | 02062f1ed6b16529b533fc65ce3ba726c1325c19 | |
parent | 3656b202806e8993c71f66687fd97fe7242bb5d2 (diff) | |
download | vala-0277ea722d37cebbe14a027441cde080f93c67e3.tar.gz |
posix: Include sys/sysmacros.h for major(), minor() and makedev()
Relying on sys/types.h is fatal since glibc 2.27 and was deprecated since
glibc 2.25.
https://bugzilla.gnome.org/show_bug.cgi?id=794651
-rw-r--r-- | vapi/posix.vapi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 3ab41d9f4..17f6a37d2 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -2071,11 +2071,11 @@ namespace Posix { public struct dev_t { } - [CCode (cheader_filename = "sys/types.h")] + [CCode (cheader_filename = "sys/sysmacros.h")] uint major (dev_t dev); - [CCode (cheader_filename = "sys/types.h")] + [CCode (cheader_filename = "sys/sysmacros.h")] uint minor (dev_t dev); - [CCode (cheader_filename = "sys/types.h")] + [CCode (cheader_filename = "sys/sysmacros.h")] dev_t makedev (int maj, int min); [SimpleType] |