1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/science/cdf/files/patch-src_include_cdfdist.h
Stephen Montgomery-Smith db48936a5f science/cdf: Allow build for ARM.
Obtained from:	Robert Clausecker <fuz@fuz.su>
2022-01-10 13:32:06 -06:00

21 lines
524 B
C

--- src/include/cdfdist.h.orig 2019-10-16 16:22:18 UTC
+++ src/include/cdfdist.h
@@ -135,7 +135,7 @@
# define unix
#endif
-#if defined(__arm__)
+#if defined(__arm__) || defined (__aarch64__)
# define ARM
# if defined(__BYTE_ORDER__)
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
@@ -567,7 +567,7 @@ typedef sChar sByte;
# if defined(__DARWIN_64_BIT_INO_T)
# define STAT stat
# else
-# define STAT stat64
+# define STAT stat
# endif
# endif
# endif