blob: 7008437b2075c747f1886e40cf211af4ff005996 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
|