summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-27 13:01:18 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-27 13:01:18 +0000
commit14817fd460bd1ec65c69a64fc4300d0ba8ac67c2 (patch)
treeacdc1d8dead17807f22e9e33f1d6c5245d6e9f72
parent264bc8f45490e98ebc50295a3721114cf6aa8d29 (diff)
downloaddrakx-14817fd460bd1ec65c69a64fc4300d0ba8ac67c2.tar
drakx-14817fd460bd1ec65c69a64fc4300d0ba8ac67c2.tar.gz
drakx-14817fd460bd1ec65c69a64fc4300d0ba8ac67c2.tar.bz2
drakx-14817fd460bd1ec65c69a64fc4300d0ba8ac67c2.tar.xz
drakx-14817fd460bd1ec65c69a64fc4300d0ba8ac67c2.zip
include stage1.h earlier so that _GNU_SOURCE and strndup are defined
-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"