summaryrefslogtreecommitdiff
path: root/lib/igt_sysfs.c
diff options
context:
space:
mode:
authorAusmus, James <james.ausmus@intel.com>2017-09-27 16:08:27 -0700
committerPetri Latvala <petri.latvala@intel.com>2017-10-04 13:37:31 +0300
commit7c9dccb596b6467899c993a7df5d32574c1b89b9 (patch)
tree8fdfa34392f7c1b1cd0bf5dde53e2ae257bcd707 /lib/igt_sysfs.c
parent7fd0cae99630f954cfe0089b4b7e91576a353582 (diff)
Fix compilation on some distros
Some distros (such as Gentoo) are removing the include of sys/sysmacros.h from sys/types.h. Explicitly include sysmacros.h in files where we use the minor() and major() functions. Signed-off-by: James Ausmus <james.ausmus@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_sysfs.c')
-rw-r--r--lib/igt_sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
index 6f03008b..e7c67dae 100644
--- a/lib/igt_sysfs.c
+++ b/lib/igt_sysfs.c
@@ -24,6 +24,7 @@
#include <inttypes.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <sys/mount.h>
#include <errno.h>
#include <stdarg.h>