From 8073a7850ec567b7e90501a657b13c71e643a28f Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 2 May 2018 23:19:44 -0500 Subject: [PATCH] Pull in the libepoll-shim includes for libwinpr's synch/test This allows FreeBSD to successfully build with BUILD_TESTING enabled. Currently, only 3/184 tests fail: 13 - TestLibraryLoadLibrary (Failed) 14 - TestLibraryGetProcAddress (Failed) 15 - TestLibraryGetModuleFileName (Failed) These failures are probably due to a lack of GetModuleFileNameA implementation on FreeBSD. --- winpr/libwinpr/synch/test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/winpr/libwinpr/synch/test/CMakeLists.txt b/winpr/libwinpr/synch/test/CMakeLists.txt index df6a8ce..5d74ea4 100644 --- a/winpr/libwinpr/synch/test/CMakeLists.txt +++ b/winpr/libwinpr/synch/test/CMakeLists.txt @@ -21,6 +21,10 @@ create_test_sourcelist(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_DRIVER} ${${MODULE_PREFIX}_TESTS}) +if(FREEBSD) + include_directories(${EPOLLSHIM_INCLUDE_DIR}) +endif() + add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS}) target_link_libraries(${MODULE_NAME} winpr) -- 2.7.4