Include sys/sysmacros.h if present.

Needed for major/minor definitions.

Thanks Mike Frysinger for pointing this out.
This commit is contained in:
Milan Broz
2016-04-19 10:57:45 +02:00
parent 1000b40a3a
commit 54c4b1656f
4 changed files with 10 additions and 1 deletions

View File

@@ -29,6 +29,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#ifdef HAVE_SYS_SYSMACROS_H
# include <sys/sysmacros.h> /* for major, minor */
#endif
#include <fcntl.h>
#include "libcryptsetup.h"