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>
This commit is contained in:
Jo-Philipp Wich 2016-04-25 11:58:47 +02:00
parent bd53eaafbc
commit bf98b86a5d

View File

@ -27,9 +27,8 @@ extern "C" {
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE 1 #define _LARGEFILE64_SOURCE 1
#include <sys/types.h> #include <sys/types.h>
#include <sys/sysmacros.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h>
#include <errno.h> #include <errno.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>