Skip to content

Commit bf98b86

Browse files
committed
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 <[email protected]>
1 parent bd53eaa commit bf98b86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext4_utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ extern "C" {
2727
#define _FILE_OFFSET_BITS 64
2828
#define _LARGEFILE64_SOURCE 1
2929
#include <sys/types.h>
30+
#include <sys/sysmacros.h>
3031
#include <unistd.h>
31-
32-
#include <sys/types.h>
3332
#include <errno.h>
3433
#include <stdarg.h>
3534
#include <stdio.h>

0 commit comments

Comments
 (0)