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.34.18~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c09a3e88b0307e7bd4f25e9e5f4bda80a40d46b;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]