From f46306945c95adc9a6232ce86f908f2a51a771dd Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 6 May 2005 06:30:51 +0000 Subject: Stage 1 compilation fixes for gcc 4.0 : * more casts signed<->unsigned types * make choose_iso_in_directory()'s return type "void" * change order of .h files in network.c so strndup is included correctly * newt: initialize some variables properly * compile pcmcia and ppp with -Wno-deprecated-declarations, since they use deprecated types such as u_int32_t --- mdk-stage1/network.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdk-stage1/network.c') 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 +/* define _GNU_SOURCE so strndup is available */ +#define _GNU_SOURCE +#include #include #include #include @@ -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 - static void error_message_net(void) /* reduce code size */ { stg1_error_message("Could not configure network."); -- cgit v1.2.1