aboutsummaryrefslogtreecommitdiff
path: root/common/drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/drm.c')
-rw-r--r--common/drm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/drm.c b/common/drm.c
index 4b70b64..3234e81 100644
--- a/common/drm.c
+++ b/common/drm.c
@@ -1,7 +1,10 @@
#include <sys/ioctl.h>
-#include <sys/sysmacros.h>
#include <sys/types.h>
+#ifdef __linux__
+#include <sys/sysmacros.h>
+#endif
+
#include "drm.h"
// From libdrm