Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
guess what? Another attempt with teh #if builds
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 9 Mar 2016 14:27:06 +0000 (15:27 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 9 Mar 2016 14:27:06 +0000 (15:27 +0100)
CMakeLists.txt
src/xbt/automaton/automatonparse_promela.c

index 144bea9..9a61a62 100644 (file)
@@ -186,6 +186,7 @@ include_directories(${INCLUDES})
 include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Option.cmake)
 
 ### Determine the assembly flavor that we need today
+set(HAVE_RAW_CONTEXTS 0)
 include(CMakeDetermineSystem)
 IF(CMAKE_SYSTEM_PROCESSOR MATCHES ".86|AMD64|amd64")
   IF(${ARCH_32_BITS})
@@ -198,7 +199,7 @@ IF(CMAKE_SYSTEM_PROCESSOR MATCHES ".86|AMD64|amd64")
     set(PROCESSOR_x86_64 1)
   ENDIF()
   if (WIN32)
-    message(STATUS "Disable fast raw contextes on Windows.")
+    message(STATUS "Disable fast raw contexts on Windows.")
   else()
     set(HAVE_RAW_CONTEXTS 1)
   endif()
index 2ed7b56..2cae6d5 100644 (file)
@@ -9,7 +9,10 @@
 #include "xbt/automaton.h"
 #include "src/internal_config.h"
 #include <errno.h>
-#include <string.h>             /* strerror */
+#include <string.h>   /* strerror */
+#if HAVE_UNISTD_H
+#include <unistd.h>   /* isatty */
+#endif
 
 static xbt_automaton_t parsed_automaton;
 char* state_id_src;