summaryrefslogtreecommitdiff
path: root/src/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backlight.c')
-rw-r--r--src/backlight.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backlight.c b/src/backlight.c
index 5d63b2cf..84d8f761 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -34,6 +34,12 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
+#if MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#elif MAJOR_IN_SYSMACROS
+#include <sys/sysmacros.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>