aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-06 19:36:00 +0100
committerDuncaen <mail@duncano.de>2017-03-06 20:34:38 +0100
commit85f6574b80f1d6d734da25fa8746a428911a6117 (patch)
tree8e0c34d8519c58930f6ce3904eb7ae3a6e281495
parente6797f725c947f5c02fca20c20e4ab5aba86c251 (diff)
downloadlobase-85f6574b80f1d6d734da25fa8746a428911a6117.tar.gz
include/sys/types.h: add to shut up glibc major/minor deprecation warnings
-rw-r--r--include/sys/types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/types.h b/include/sys/types.h
new file mode 100644
index 0000000..0f8cba0
--- /dev/null
+++ b/include/sys/types.h
@@ -0,0 +1,10 @@
+#ifndef _COMPAT_SYS_TYPES_H_
+#define _COMPAT_SYS_TYPES_H_
+/*
+ * for major()/minor() macros with glibc, needs to be included before
+ * <sys/types.h>
+ */
+#include <sys/sysmacros.h>
+#endif /* _COMPAT_SYS_TYPES_H_ */
+
+#include_next <sys/types.h>