summary refs log tree commit diff
path: root/pkgs/tools/misc/hdf4/darwin-aarch64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/hdf4/darwin-aarch64.patch')
-rw-r--r--pkgs/tools/misc/hdf4/darwin-aarch64.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/misc/hdf4/darwin-aarch64.patch b/pkgs/tools/misc/hdf4/darwin-aarch64.patch
new file mode 100644
index 00000000000..cff81e58117
--- /dev/null
+++ b/pkgs/tools/misc/hdf4/darwin-aarch64.patch
@@ -0,0 +1,11 @@
+--- a/hdf/src/hdfi.h	2021-06-16 16:31:31.000000000 +1200
++++ b/hdf/src/hdfi.h	2021-06-16 16:42:26.000000000 +1200
+@@ -1343,7 +1343,7 @@
+ #endif /* IA64 */
+ 
+ /* Linux AArch64 */
+-#if defined __aarch64__
++#if defined __aarch64__ && !defined __APPLE__
+ 
+ #ifdef GOT_MACHINE
+ If you get an error on this line more than one machine type has been defined.