diff options
Diffstat (limited to 'pkgs/applications/science/physics/crystfel/disable-fmemopen-on-aarch64-darwin.patch')
-rw-r--r-- | pkgs/applications/science/physics/crystfel/disable-fmemopen-on-aarch64-darwin.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/science/physics/crystfel/disable-fmemopen-on-aarch64-darwin.patch b/pkgs/applications/science/physics/crystfel/disable-fmemopen-on-aarch64-darwin.patch new file mode 100644 index 000000000000..c35350d0008f --- /dev/null +++ b/pkgs/applications/science/physics/crystfel/disable-fmemopen-on-aarch64-darwin.patch @@ -0,0 +1,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; |