From: Rico Tzschichholz Date: Sat, 24 Mar 2018 13:06:14 +0000 (+0100) Subject: posix: Include sys/sysmacros.h for major(), minor() and makedev() X-Git-Tag: 0.41.90~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0277ea722d37cebbe14a027441cde080f93c67e3;p=thirdparty%2Fvala.git 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 --- 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]