# HG changeset patch # User Sebastien Jodogne # Date 1515083913 -3600 # Node ID 36d4388ed13104540074787a811d74441da07dff # Parent 8fe42ddf0807bed27074c4eb82ede9801eb78cd8 sync diff -r 8fe42ddf0807 -r 36d4388ed131 Orthanc/Core/Endianness.h --- a/Orthanc/Core/Endianness.h Thu Jan 04 09:50:04 2018 +0100 +++ b/Orthanc/Core/Endianness.h Thu Jan 04 17:38:33 2018 +0100 @@ -101,6 +101,16 @@ /******************************************************************** + ** OPENBSD ARCHITECTURES + ********************************************************************/ + +#if defined(__OpenBSD__) +# define ORTHANC_HAS_BUILTIN_BYTE_SWAP 1 +# include +#endif + + +/******************************************************************** ** APPLE ARCHITECTURES (including OS X) ********************************************************************/ diff -r 8fe42ddf0807 -r 36d4388ed131 Orthanc/Core/PrecompiledHeaders.h --- a/Orthanc/Core/PrecompiledHeaders.h Thu Jan 04 09:50:04 2018 +0100 +++ b/Orthanc/Core/PrecompiledHeaders.h Thu Jan 04 17:38:33 2018 +0100 @@ -59,8 +59,6 @@ #include "Toolbox.h" #if ORTHANC_ENABLE_DCMTK == 1 -# include "DicomParsing/ParsedDicomFile.h" - // Headers from DCMTK used in Orthanc headers # include # include diff -r 8fe42ddf0807 -r 36d4388ed131 Orthanc/Resources/CMake/Compiler.cmake --- a/Orthanc/Resources/CMake/Compiler.cmake Thu Jan 04 09:50:04 2018 +0100 +++ b/Orthanc/Resources/CMake/Compiler.cmake Thu Jan 04 17:38:33 2018 +0100 @@ -99,8 +99,9 @@ link_libraries(dl) endif() - if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") - # The "--as-needed" linker flag is not available on FreeBSD + if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND + NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") + # The "--as-needed" linker flag is not available on FreeBSD and OpenBSD set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")