summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/loader/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 4825151ad5e..3b28a0e7db7 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -33,6 +33,8 @@
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
#ifdef MAJOR_IN_MKDEV
#include <sys/mkdev.h>
#endif
@@ -42,8 +44,6 @@
#include "loader.h"
#ifdef HAVE_LIBDRM
-#include <stdlib.h>
-#include <unistd.h>
#include <xf86drm.h>
#ifdef USE_DRICONF
#include "xmlconfig.h"