summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/modules.c3
-rw-r--r--mdk-stage1/network.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 927f33fcb..4d4771314 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -18,6 +18,8 @@
* (3) insmod them
*/
+#include "stage1.h"
+
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -27,7 +29,6 @@
#include <string.h>
#include <stdio.h>
#include <errno.h>
-#include "stage1.h"
#include "log.h"
#include "utils.h"
#include "frontend.h"
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index 6959fcbc8..8c70e4437 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -19,9 +19,9 @@
*
*/
+#include "stage1.h"
+
#include <stdlib.h>
-/* define _GNU_SOURCE so strndup is available */
-#define _GNU_SOURCE
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
@@ -35,7 +35,6 @@
#include <resolv.h>
#include <sys/utsname.h>
-#include "stage1.h"
#include "frontend.h"
#include "modules.h"
#include "probing.h"