You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
887 B
27 lines
887 B
Index: lib/chunkio/deps/crc32/crc32.c |
|
--- lib/chunkio/deps/crc32/crc32.c.orig 2019-03-27 19:48:51.000000000 +0100 |
|
+++ lib/chunkio/deps/crc32/crc32.c 2019-04-07 00:19:48.611983000 +0200 |
|
@@ -29,8 +29,10 @@ |
|
# define htole16(x) (x) |
|
# define be16toh(x) ntohs(x) |
|
# define le16toh(x) (x) |
|
-#else |
|
+#elif defined(__linux__) |
|
# include <endian.h> |
|
+#elif defined(__FreeBSD__) |
|
+# include <sys/endian.h> |
|
#endif |
|
|
|
|
|
Index: lib/chunkio/src/cio_file.c |
|
--- lib/chunkio/src/cio_file.c.orig 2019-03-27 19:48:51.000000000 +0100 |
|
+++ lib/chunkio/src/cio_file.c 2019-04-07 00:24:16.273919000 +0200 |
|
@@ -621,7 +621,7 @@ |
|
|
|
/* macOS does not have fallocate(). |
|
* So, we should use ftruncate always. */ |
|
-#ifndef __APPLE__ |
|
+#if !defined(__APPLE__) && !defined(__FreeBSD__) |
|
if (new_size > cf->alloc_size) { |
|
/* |
|
* To increase the file size we use fallocate() since this option
|
|
|