Include sys/sysmacros.h explicitely.
authorJo-Philipp Wich <jo@mein.io>
Mon, 25 Apr 2016 09:58:47 +0000 (11:58 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 25 Apr 2016 09:58:47 +0000 (11:58 +0200)
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>
ext4_utils.h

index 2ad05a0310125a228aad458c208f9c4ad0032778..f7c4b7fd578f30278c864dc3c8b2bff1dd0fe338 100644 (file)
@@ -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>