Remove a build warning about major/minor defined in sysmacros.h

The new glibc 2.26 shows a warning if the code uses major/minor
from sys/types.h. Unfortunalte the autoconf macro used do not trigger
sysmacros.h inclusion because major/minor are already defined in sys/types.h.
This commit is contained in:
Andrea Mazzoleni 2018-11-12 21:20:02 +01:00
parent 825493b56d
commit 37b0064d60
3 changed files with 9 additions and 4 deletions

View file

@ -198,9 +198,11 @@
#include <sys/types.h>
#endif
#if MAJOR_IN_MKDEV
#if HAVE_SYS_MKDEV
#include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#endif
#if HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif