summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-kfreebsd.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:23:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:23:11 +0000
commit26de5ed8d24188f544a9bc27cb7d86b641bceddf (patch)
tree7fbf5e1edc1e6b0fca9bda79edfe97168485ee26 /debian/patches/0001-kfreebsd.patch
parentAdding upstream version 1:4.6.1. (diff)
downloadsquashfs-tools-debian.tar.xz
squashfs-tools-debian.zip
Adding debian version 1:4.6.1-1.debian/1%4.6.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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);
+