From: agiersch Date: Tue, 22 Feb 2011 13:19:06 +0000 (+0000) Subject: Fix build error: implicit declaration of function 'getline'. X-Git-Tag: v3.6_beta2~266 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/41acb535492710d42da81b0878fa602bdeaa4bd5 Fix build error: implicit declaration of function 'getline'. On Debian/Lenny, #include "simgrid_config.h" needs to be the first include for getline to be found. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9677 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/msg_actions.c b/src/msg/msg_actions.c index 933cf3e18d..9860331077 100644 --- a/src/msg/msg_actions.c +++ b/src/msg/msg_actions.c @@ -4,11 +4,12 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include "simgrid_config.h" //For getline, keep that include first + #include "msg/private.h" #include "xbt/str.h" #include "xbt/dynar.h" #include "xbt/replay_trace_reader.h" -#include "simgrid_config.h" //For getline XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_action, msg, "MSG actions for trace driven simulation"); diff --git a/src/xbt/xbt_replay_trace_reader.c b/src/xbt/xbt_replay_trace_reader.c index d3b96df03d..ef70a1c34e 100644 --- a/src/xbt/xbt_replay_trace_reader.c +++ b/src/xbt/xbt_replay_trace_reader.c @@ -3,13 +3,14 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include "simgrid_config.h" //For getline, keep that include first + #include "gras_config.h" #include #include "xbt/sysdep.h" #include "xbt/log.h" #include "xbt/str.h" #include "xbt/replay_trace_reader.h" -#include "simgrid_config.h" //For getline XBT_LOG_NEW_DEFAULT_SUBCATEGORY(replay,xbt,"Replay trace reader"); diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index b8241a4935..e441b89701 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -11,9 +11,10 @@ #pragma hdrstop #endif +#include "simgrid_config.h" //For getline, keep that include first + #include "tesh.h" #include "xbt.h" -#include "simgrid_config.h" //For getline XBT_LOG_NEW_DEFAULT_CATEGORY(tesh, "TEst SHell utility");