diff --git a/.travis.yml b/.travis.yml index 4ccfb43a22..dcd663c5d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -112,6 +112,10 @@ matrix: # Check that example compiles - sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp - python tools/make.py -t GCC_ARM -m K64F --source=. --build=BUILD/K64F/GCC_ARM -j0 + # Check that example compiles without rtos + - sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp + - rm -r rtos features/netsocket features/frameworks BUILD + - python tools/make.py -t GCC_ARM -m DISCO_F401VC --source=. --build=BUILD/DISCO_F401VC/GCC_ARM -j0 # Run local equeue tests - make -C $EVENTS/equeue test diff --git a/events/equeue/equeue_platform.h b/events/equeue/equeue_platform.h index 9c5bec289d..a63243ed9f 100644 --- a/events/equeue/equeue_platform.h +++ b/events/equeue/equeue_platform.h @@ -49,7 +49,7 @@ extern "C" { // Platform includes #if defined(EQUEUE_PLATFORM_POSIX) #include -#elif defined(EQUEUE_PLATFORM_MBED) +#elif defined(EQUEUE_PLATFORM_MBED) && defined(MBED_CONF_RTOS_PRESENT) #include "cmsis_os2.h" #include "mbed_rtos_storage.h" #endif