Skip to content

Commit

Permalink
Add VxWorks support (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
razr authored May 30, 2020
1 parent de1a887 commit 476df19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set(FOONATHAN_MEMORY_VERSION "${FOONATHAN_MEMORY_VERSION_MAJOR}.${FOONATHAN_MEMO
set(CMAKE_DEBUG_POSTFIX "-dbg")

# installation destinations
if(UNIX)
if(UNIX OR VXWORKS)
include(GNUInstallDirs)

set(FOONATHAN_MEMORY_INC_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/foonathan_memory")
Expand Down
2 changes: 1 addition & 1 deletion src/virtual_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void foonathan::memory::virtual_memory_decommit(void* memory,
auto result = VirtualFree(memory, no_pages * virtual_memory_page_size, MEM_DECOMMIT);
FOONATHAN_MEMORY_ASSERT_MSG(result, "cannot decommit memory");
}
#elif defined(__unix__) || defined(__APPLE__) // POSIX systems
#elif defined(__unix__) || defined(__APPLE__) || defined(__VXWORKS__) // POSIX systems
#include <sys/mman.h>
#include <unistd.h>

Expand Down

0 comments on commit 476df19

Please sign in to comment.