changeset 5160:9f16979b6124

fix osx build
author Alain Mazy <am@osimis.io>
date Thu, 02 Feb 2023 12:25:58 +0100
parents f5907aecbaed
children b6dc4606ab04
files OrthancServer/Sources/ServerContext.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Thu Feb 02 11:28:35 2023 +0100
+++ b/OrthancServer/Sources/ServerContext.cpp	Thu Feb 02 12:25:58 2023 +0100
@@ -48,7 +48,10 @@
 
 #include <dcmtk/dcmdata/dcfilefo.h>
 #include <dcmtk/dcmnet/dimse.h>
-#include <malloc.h>
+
+#if HAVE_MALLOC_TRIM == 1
+#  include <malloc.h>
+#endif
 
 static size_t DICOM_CACHE_SIZE = 128 * 1024 * 1024;  // 128 MB