Skip to content

Commit 9af4168

Browse files
author
Burak Yücesoy
authored
Merge pull request citusdata#43 from yagelix/master
Fixed compilation on FreeBSD and DragonFly
2 parents 7c1182b + 5295c6e commit 9af4168

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)