Use <sys/endian.h> for endian detection on NetBSD

Signed-off-by: Nia Alarie <nia@NetBSD.org>
This commit is contained in:
nia 2021-06-12 09:42:54 +02:00 committed by Ozkan Sezer
parent bc9888c9b5
commit 98f2e38b26
1 changed files with 1 additions and 1 deletions

View File

@ -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