# HG changeset patch # User sjodogne # Date 1503439633 -7200 # Node ID eb9fdf8db9f008f475e2c2214ce07604a8cc7992 # Parent 38aa615b7667393ed45dd11a0a47ea8da1940654 fix build on OpenBSD diff -r 38aa615b7667 -r eb9fdf8db9f0 Resources/CMake/GdcmConfiguration.cmake --- a/Resources/CMake/GdcmConfiguration.cmake Tue Aug 22 21:54:36 2017 +0200 +++ b/Resources/CMake/GdcmConfiguration.cmake Wed Aug 23 00:07:13 2017 +0200 @@ -24,6 +24,10 @@ ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") set(AdditionalFlags "-fPIC") + elseif (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") + # This definition is necessary to compile + # "Source/MediaStorageAndFileFormat/gdcmFileStreamer.cxx" + set(AdditionalFlags "-Doff64_t=off_t") endif() set(Flags