Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on NetBSD #211

Closed
moubctez opened this issue Oct 15, 2023 · 0 comments
Closed

Fix build on NetBSD #211

moubctez opened this issue Oct 15, 2023 · 0 comments

Comments

@moubctez
Copy link

Version 1.3.2 fails to build on NetBSD:

ld: libmysofa.a(reader.c.o): in function `getArray':
reader.c:(.text+0x6c): undefined reference to `letoh64'

This patch is needed to fix the issue:

--- src/hrtf/portable_endian.h.orig	2023-10-15 19:23:14.526442578 +0000
+++ src/hrtf/portable_endian.h
@@ -41,11 +41,11 @@
 #	define __LITTLE_ENDIAN LITTLE_ENDIAN
 #	define __PDP_ENDIAN    PDP_ENDIAN
 
-#elif defined(__OpenBSD__)
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
 
 #	include <sys/endian.h>
 
-#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 
 #	include <sys/endian.h>
 
hoene added a commit that referenced this issue Oct 15, 2023
fix to address issue #211
@hoene hoene closed this as completed Oct 15, 2023
BSDKaffee added a commit to BSDKaffee/libmysofa that referenced this issue Oct 16, 2023
The BSDs have been rather unified with regards to these naming conventions within the past 9 years. Related to hoene#211.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants