summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich2016-04-25 09:58:47 +0000
committerJo-Philipp Wich2016-04-25 09:58:47 +0000
commitbf98b86a5df5fcfb658d77fd5e0897ca87a35e8e (patch)
tree5f4e44023d9e20c8fbbf1a46df8acc4f4bd2fa50
parentbd53eaafbc2a89a57b8adda38f53098a431fa8f4 (diff)
downloadmake_ext4fs-bf98b86a5df5fcfb658d77fd5e0897ca87a35e8e.tar.gz
Include sys/sysmacros.h explicitely.
Recent glibc versions do not expose major() and minor() without an explicit include of sysmacros.h anymore, therefor add it. Also remove duplicate types.h include while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--ext4_utils.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext4_utils.h b/ext4_utils.h
index 2ad05a0..f7c4b7f 100644
--- a/ext4_utils.h
+++ b/ext4_utils.h
@@ -27,9 +27,8 @@ extern "C" {
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE 1
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <unistd.h>
-
-#include <sys/types.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>