From 7c9dccb596b6467899c993a7df5d32574c1b89b9 Mon Sep 17 00:00:00 2001 From: "Ausmus, James" Date: Wed, 27 Sep 2017 16:08:27 -0700 Subject: 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 Reviewed-by: Petri Latvala --- lib/igt_debugfs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_debugfs.c') diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index 1e8c8cc3..60b29e3a 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3