Skip to content

Commit 5295c6e

Browse files
committed
Fixed compilation on FreeBSD and DragonFlyBSD OSes
1 parent 7c1182b commit 5295c6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hll.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#if defined(__APPLE__)
1919
#include <libkern/OSByteOrder.h>
2020
#define bswap_64 OSSwapInt64
21+
#elif defined(__FreeBSD__) || defined(__DragonFly__)
22+
#include <sys/endian.h>
23+
#define bswap_64 bswap64
2124
#else
2225
#include <byteswap.h>
2326
#endif

0 commit comments

Comments
 (0)