https://github.com/hasse69/rar2fs/pull/51 From e8c477f726eb7bfd65ef33e2b080063e6f8013c0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 21 Jun 2016 14:54:06 -0400 Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev These funcs are defined in sys/sysmacros.h, so include the header to fix building with C libs that don't implicitly include via sys/types.h. Signed-off-by: Mike Frysinger --- configure.ac | 2 +- rar2fs.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) --- a/rar2fs.c +++ b/rar2fs.c @@ -56,6 +56,9 @@ #ifdef HAVE_SYS_XATTR_H # include #endif +#ifdef __linux__ +# include +#endif #ifdef HAVE_ICONV #include #endif -- 2.8.2