ports/sysutils/fluent-bit/files/patch-lib__chunkio__deps__crc32__crc32.c
2019-01-07 23:25:33 +00:00

11 lines
293 B
C

--- lib/chunkio/deps/crc32/crc32.c.orig 2018-12-20 18:13:51 UTC
+++ lib/chunkio/deps/crc32/crc32.c
@@ -29,6 +29,8 @@
# define htole16(x) (x)
# define be16toh(x) ntohs(x)
# define le16toh(x) (x)
+#elif defined(__FreeBSD__)
+# include <sys/endian.h>
#else
# include <endian.h>
#endif