about summary refs log tree commit diff
path: root/pkgs/applications/science/physics/crystfel/disable-fmemopen-on-aarch64-darwin.patch
blob: c35350d0008f86203fe5ceda3de152325f8a07a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c
index b8f09a1f..f8a15c1b 100644
--- a/libcrystfel/src/image-cbf.c
+++ b/libcrystfel/src/image-cbf.c
@@ -287,7 +287,7 @@ static float *read_cbf_data(const char *filename, int gz, int *w, int *h)
 
 	} else {
 
-		#ifdef HAVE_ZLIB
+		#if defined(HAVE_ZLIB) && !(defined(__aarch64__) && defined(__APPLE__))
 		gzFile gzfh;
 		int len_read;
 		size_t len;