summaryrefslogtreecommitdiff
path: root/tools
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 /tools
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 'tools')
-rw-r--r--tools/aubdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 78d183f4..ee4d99b0 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -30,6 +30,7 @@
#include <stdarg.h>
#include <fcntl.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <unistd.h>