From cd606124fc11b9deb58e8e82cd802487e9a8ab12 Mon Sep 17 00:00:00 2001
From: Michael Buehlmann <mbuehlmann@uan-0001.head.cm.americas.sgi.com>
Date: Fri, 10 Feb 2023 22:12:48 +0000
Subject: [PATCH] update CMakeLists.txt to include HAVE_UNISTD_H for clang
 compilers

---
 thirdparty/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt
index 7b70080..b12a06f 100644
--- a/thirdparty/CMakeLists.txt
+++ b/thirdparty/CMakeLists.txt
@@ -113,7 +113,7 @@ target_include_directories(blosc INTERFACE
     blosc
     SZ/sz/include
     )
-target_compile_definitions(blosc PRIVATE HAVE_LZ4 HAVE_SNAPPY HAVE_ZLIB HAVE_ZSTD)
+target_compile_definitions(blosc PRIVATE HAVE_LZ4 HAVE_SNAPPY HAVE_ZLIB HAVE_ZSTD HAVE_UNISTD_H)
 if(OpenMP_FOUND)
     target_link_libraries(blosc PRIVATE OpenMP::OpenMP_C OpenMP::OpenMP_CXX)
-endif()
\ No newline at end of file
+endif()
-- 
GitLab