Author: Cyril Brulebois 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);