From 625fdf27366e6a15a645866abc0608e3b7925663 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Fri, 20 Feb 2015 23:56:47 +1100 Subject: Fix issue with Linux specific code not compiling (#261) --- heimdall/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'heimdall/CMakeLists.txt') diff --git a/heimdall/CMakeLists.txt b/heimdall/CMakeLists.txt index 82dc2d3..ef927bf 100644 --- a/heimdall/CMakeLists.txt +++ b/heimdall/CMakeLists.txt @@ -14,6 +14,10 @@ if(MINGW) set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static") endif(MINGW) +if(LINUX) + add_definitions(-DOS_LINUX) +endif(LINUX) + include_directories(SYSTEM ${LIBUSB_INCLUDE_DIRS}) include_directories(${LIBPIT_INCLUDE_DIRS}) -- cgit v1.2.3