Commit 98f2e38b26abd6f6470546e19fb33106ae988359

nia 2021-06-12T09:42:54

Use <sys/endian.h> for endian detection on NetBSD Signed-off-by: Nia Alarie <nia@NetBSD.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_endian.h b/include/SDL_endian.h
index 0a8e204..205b793 100644
--- a/include/SDL_endian.h
+++ b/include/SDL_endian.h
@@ -65,7 +65,7 @@ _m_prefetch(void *__P)
 #elif defined(__OpenBSD__)
 #include <endian.h>
 #define SDL_BYTEORDER  BYTE_ORDER
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
 #include <sys/endian.h>
 #define SDL_BYTEORDER  BYTE_ORDER
 #else