Only include sys/sysmacros.h on glibc, it is not portable

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-05-05 18:46:21 +01:00
parent bf98b86a5d
commit 3af931b0b6

View File

@ -27,7 +27,11 @@ extern "C" {
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE 1
#include <sys/types.h>
#ifdef __GLIBC__
#include <sys/sysmacros.h>
#endif
#include <unistd.h>
#include <errno.h>
#include <stdarg.h>