diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-08-12 19:35:27 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-08-12 19:35:27 +0200 |
| commit | 679f89bb7aa60701704a74525e5bb4f4fe5a9ef6 (patch) | |
| tree | 16b4433dfaa8b07ac136a6667cb8b78eb69607c7 /src | |
| parent | 0ef2d6587d3506659e3c41417b698659b3e2545b (diff) | |
Restore building for OpenBSD
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d4214502d..f8d5299bf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -532,7 +532,10 @@ endif(FLTK_USE_X11) if(FLTK_USE_WAYLAND) set(IDIRS "${CMAKE_CURRENT_BINARY_DIR}") - set(CDEFS "_GNU_SOURCE;HAVE_MEMFD_CREATE;HAVE_MKOSTEMP;HAVE_POSIX_FALLOCATE") + set(CDEFS "_GNU_SOURCE;HAVE_MKOSTEMP") + if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD") + set(CDEFS "${CDEFS};HAVE_MEMFD_CREATE;HAVE_POSIX_FALLOCATE") + endif() set(COPTS "-fPIC") if(FLTK_USE_DBUS) pkg_check_modules(DBUS IMPORTED_TARGET dbus-1) |
