suppress glibc "use sysmacros.h for major" warning

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-12-12 16:29:32 +01:00
parent df25df784f
commit 4f13a70507

View File

@ -45,7 +45,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#ifndef major #if !defined(major) || defined(__GLIBC__)
# include <sys/sysmacros.h> # include <sys/sysmacros.h>
#endif #endif
#include <sys/wait.h> #include <sys/wait.h>