diff options
Diffstat (limited to 'mdk-stage1/network.c')
-rw-r--r-- | mdk-stage1/network.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 5239b4bee..1d65acdaf 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -20,6 +20,9 @@ */ #include <stdlib.h> +/* define _GNU_SOURCE so strndup is available */ +#define _GNU_SOURCE +#include <string.h> #include <unistd.h> #include <sys/socket.h> #include <net/if.h> @@ -48,9 +51,6 @@ #include "directory.h" #include "wireless.h" -/* include it after config-stage1.h so that _GNU_SOURCE is defined and strndup is available */ -#include <string.h> - static void error_message_net(void) /* reduce code size */ { stg1_error_message("Could not configure network."); |