mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
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:
parent
825493b56d
commit
37b0064d60
3 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue