FLTK logo

[master] 679f89b - Restore building for OpenBSD

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.commit  ]
 
[ Previous Message ] [ Next Message ]

[master] 679f89b - Restore building for OpenBSD "ManoloFLTK" Aug 12, 2025  
 
commit 679f89bb7aa60701704a74525e5bb4f4fe5a9ef6
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Aug 12 19:35:27 2025 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Aug 12 19:35:27 2025 +0200

    Restore building for OpenBSD

 src/CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git src/CMakeLists.txt src/CMakeLists.txt
index d421450..f8d5299 100644
--- src/CMakeLists.txt
+++ 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)
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.