From: nge Date: Wed, 16 Dec 2009 15:06:50 +0000 (+0000) Subject: A little fix for compilation on old gcc (i.e. 3.3.5) X-Git-Tag: V1_1_0_alpha1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a65db646a93694c4b297d2f8b73deefe88128b2;p=tools%2Flibbatch.git A little fix for compilation on old gcc (i.e. 3.3.5) --- diff --git a/src/Local/Batch_BatchManager_Local.cxx b/src/Local/Batch_BatchManager_Local.cxx index aadbcdc..fd975fe 100644 --- a/src/Local/Batch_BatchManager_Local.cxx +++ b/src/Local/Batch_BatchManager_Local.cxx @@ -606,7 +606,9 @@ namespace Batch { UNDER_LOCK( cout << "Status is: " << WCOREDUMP( child_rc) << endl); UNDER_LOCK( cout << "Status is: " << WIFSTOPPED( child_rc) << endl); UNDER_LOCK( cout << "Status is: " << WSTOPSIG( child_rc) << endl); - UNDER_LOCK( cout << "Status is: " << WIFCONTINUED( child_rc) << endl); +#ifdef WIFCONTINUED + UNDER_LOCK( cout << "Status is: " << WIFCONTINUED( child_rc) << endl); // not compilable on sarge +#endif if (WIFSTOPPED(child_rc)) { // NOTA : pour rentrer dans cette section, il faut que le flag WUNTRACED // soit positionne dans l'appel a waitpid ci-dessus. Ce flag est couramment