libmysofa: Fix build on SunOS too.

This commit is contained in:
jperkin 2023-10-30 16:15:32 +00:00
parent e5f9b70b4c
commit c5af872cd0
2 changed files with 13 additions and 4 deletions

View File

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.11 2023/10/15 19:33:54 adam Exp $
$NetBSD: distinfo,v 1.12 2023/10/30 16:15:32 jperkin Exp $
BLAKE2s (libmysofa-1.3.2.tar.gz) = 675c9868f788c4e1f819845b03d30f177a19f889d4007666c83f7feb39da6dd3
SHA512 (libmysofa-1.3.2.tar.gz) = de7f5d36079b8be06860f3380c7a359e22f59e3e57d86f5f5df1512a20b321e392e2452a34f3ea979779fb84c7493fd4febd386c89b6da4182d6c0cfb0ce1d75
Size (libmysofa-1.3.2.tar.gz) = 208753292 bytes
SHA1 (patch-src_hrtf_portable__endian.h) = 947edd19cc4f18e5879521c083e13530efffbb96
SHA1 (patch-src_hrtf_portable__endian.h) = 7d5632822cfeea50dd7694688921d9397716d69f

View File

@ -1,10 +1,19 @@
$NetBSD: patch-src_hrtf_portable__endian.h,v 1.1 2023/10/15 19:33:54 adam Exp $
$NetBSD: patch-src_hrtf_portable__endian.h,v 1.2 2023/10/30 16:15:32 jperkin Exp $
Fix build on NetBSD.
https://github.com/hoene/libmysofa/issues/211
--- src/hrtf/portable_endian.h.orig 2023-10-15 19:23:14.526442578 +0000
--- src/hrtf/portable_endian.h.orig 2023-10-15 10:30:14.000000000 +0000
+++ src/hrtf/portable_endian.h
@@ -13,7 +13,7 @@
#endif
-#if defined(__linux__) || defined(__CYGWIN__)
+#if defined(__linux__) || defined(__CYGWIN__) || defined(__sun)
# include <endian.h>
@@ -41,11 +41,11 @@
# define __LITTLE_ENDIAN LITTLE_ENDIAN
# define __PDP_ENDIAN PDP_ENDIAN