[vala/0.36: 198/212] posix: Include sys/sysmacros.h for major(), minor() and makedev()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36: 198/212] posix: Include sys/sysmacros.h for major(), minor() and makedev()
- Date: Sat, 14 Apr 2018 08:00:00 +0000 (UTC)
commit aff918e0c980dbf019320e29b206e9ab140dca2b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Mar 24 14:06:14 2018 +0100
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
vapi/posix.vapi | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index fa60996..01cd33e 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]