Skip to content

Commit 7b4e69d

Browse files
yangflNikolajSchlej
authored andcommitted
Fix GNU Hurd build of the updated kaitai runtime
1 parent 32a92f0 commit 7b4e69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/kaitai/kaitaistream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define bswap_16(x) swap16(x)
4040
#define bswap_32(x) swap32(x)
4141
#define bswap_64(x) swap64(x)
42-
#elif defined(BSD)
42+
#elif defined(BSD) && !defined(GNU)
4343
// Supposed to work on FreeBSD: https://man.freebsd.org/cgi/man.cgi?query=bswap16&manpath=FreeBSD+14.0-RELEASE
4444
// Supposed to work on NetBSD: https://man.netbsd.org/NetBSD-10.0/bswap16.3
4545
#include <sys/endian.h>

0 commit comments

Comments
 (0)