From 14817fd460bd1ec65c69a64fc4300d0ba8ac67c2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 27 Aug 2007 13:01:18 +0000 Subject: include stage1.h earlier so that _GNU_SOURCE and strndup are defined --- mdk-stage1/modules.c | 3 ++- mdk-stage1/network.c | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mdk-stage1') 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 #include #include @@ -27,7 +29,6 @@ #include #include #include -#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 -/* define _GNU_SOURCE so strndup is available */ -#define _GNU_SOURCE #include #include #include @@ -35,7 +35,6 @@ #include #include -#include "stage1.h" #include "frontend.h" #include "modules.h" #include "probing.h" -- cgit v1.2.1