From: vsr Date: Mon, 18 Apr 2011 10:42:03 +0000 (+0000) Subject: Fix configuration / compilation problems in KERNEL with libBatch (caused by wrong... X-Git-Tag: Before_0020136~53 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=110bda7bc3b5ebcb94cfdf9c2d93f580ae773822;p=modules%2Fkernel.git Fix configuration / compilation problems in KERNEL with libBatch (caused by wrong #include syntax for local header files used in libBatch headers) --- diff --git a/salome_adm/unix/config_files/check_libbatch.m4 b/salome_adm/unix/config_files/check_libbatch.m4 index 089dc070d..8c5ec95af 100644 --- a/salome_adm/unix/config_files/check_libbatch.m4 +++ b/salome_adm/unix/config_files/check_libbatch.m4 @@ -53,14 +53,14 @@ LOCAL_INCLUDES="" LOCAL_LIBS="" if test "x$LIBBATCH_DIR" != "x" ; then - LOCAL_INCLUDES="-I$LIBBATCH_DIR/include/Batch" + LOCAL_INCLUDES="-I$LIBBATCH_DIR/include" if test "x$LIBBATCH_DIR" = "x/usr" ; then LOCAL_LIBS="-lBatch" else LOCAL_LIBS="-L$LIBBATCH_DIR/lib -lBatch" fi else - LOCAL_INCLUDES="-I/usr/include/Batch" + LOCAL_INCLUDES="-I/usr/include" LOCAL_LIBS="-lBatch" fi diff --git a/src/Launcher/BatchTest.cxx b/src/Launcher/BatchTest.cxx index 53a765bf0..80f59953e 100644 --- a/src/Launcher/BatchTest.cxx +++ b/src/Launcher/BatchTest.cxx @@ -24,8 +24,8 @@ #include "Launcher.hxx" #ifdef WITH_LIBBATCH -#include -#include +#include +#include #endif #include "utilities.h" diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index 672212ba7..e416a934c 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -21,10 +21,10 @@ // #ifdef WITH_LIBBATCH -#include -#include -#include -#include +#include +#include +#include +#include #endif #include "Basics_Utils.hxx" diff --git a/src/Launcher/Launcher_Job.cxx b/src/Launcher/Launcher_Job.cxx index 72594b8da..7b2526e61 100644 --- a/src/Launcher/Launcher_Job.cxx +++ b/src/Launcher/Launcher_Job.cxx @@ -23,7 +23,8 @@ #include "Launcher.hxx" #ifdef WITH_LIBBATCH -#include +#include +#include #endif Launcher::Job::Job() diff --git a/src/Launcher/Launcher_Job.hxx b/src/Launcher/Launcher_Job.hxx index ae169ad44..eeba823a7 100644 --- a/src/Launcher/Launcher_Job.hxx +++ b/src/Launcher/Launcher_Job.hxx @@ -38,10 +38,10 @@ #include #ifdef WITH_LIBBATCH -#include -#include -#include -#include +#include +#include +#include +#include #endif #include