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.38.9~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df36adbce17a8cebd579f28c18cc3ba07de11a44;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 fa6099668..01cd33e25 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1730,11 +1730,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]