From aab838f05318939b5d95a1006a22ed05a7fece89 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 9 Mar 2016 15:27:06 +0100 Subject: [PATCH] guess what? Another attempt with teh #if builds --- CMakeLists.txt | 3 ++- src/xbt/automaton/automatonparse_promela.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 144bea937e..9a61a62483 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/src/xbt/automaton/automatonparse_promela.c b/src/xbt/automaton/automatonparse_promela.c index 2ed7b560a2..2cae6d53d0 100644 --- a/src/xbt/automaton/automatonparse_promela.c +++ b/src/xbt/automaton/automatonparse_promela.c @@ -9,7 +9,10 @@ #include "xbt/automaton.h" #include "src/internal_config.h" #include -#include /* strerror */ +#include /* strerror */ +#if HAVE_UNISTD_H +#include /* isatty */ +#endif static xbt_automaton_t parsed_automaton; char* state_id_src; -- 2.20.1