summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-kfreebsd.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/0001-kfreebsd.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/0001-kfreebsd.patch b/debian/patches/0001-kfreebsd.patch
new file mode 100644
index 0000000..7008437
--- /dev/null
+++ b/debian/patches/0001-kfreebsd.patch
@@ -0,0 +1,38 @@
+Author: Cyril Brulebois <kibi@debian.org>
+Description: Fixes FTBFS on kfreebsd (Closes: #557174).
+Bug-Debian: https://bugs.debian.org/557174
+Last-Update: 2021-07-25
+
+--- a/squashfs-tools/endian_compat.h
++++ b/squashfs-tools/endian_compat.h
+@@ -23,7 +23,7 @@
+ *
+ * endian_compat.h
+ */
+-#ifndef linux
++#if !defined(linux) && !defined(__GLIBC__)
+ #define __BYTE_ORDER BYTE_ORDER
+ #define __BIG_ENDIAN BIG_ENDIAN
+ #define __LITTLE_ENDIAN LITTLE_ENDIAN
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -5024,7 +5024,7 @@ static void initialise_threads(int readq
+ BAD_ERROR("Failed to set signal mask in intialise_threads\n");
+
+ if(processors == -1) {
+-#ifndef linux
++#if !defined(linux) && !defined(__GLIBC__)
+ int mib[2];
+ size_t len = sizeof(processors);
+
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -2710,7 +2710,7 @@ void initialise_threads(int fragment_buf
+ }
+
+ if(processors == -1) {
+-#ifndef linux
++#if !defined(linux) && !defined(__GLIBC__)
+ int mib[2];
+ size_t len = sizeof(processors);
+