From: Evan Nemerson Date: Tue, 29 Sep 2015 15:34:28 +0000 (-0700) Subject: Fix compilation on BSD X-Git-Tag: 1.9.9-b1~791^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca7d031dadc0c49a3e3c9444448a52757ffbbc6d;p=thirdparty%2Fzlib-ng.git Fix compilation on BSD The endianness functions are in , not as they are in Linux. --- diff --git a/crc32.c b/crc32.c index 76f7a8ac6..7ab796d12 100644 --- a/crc32.c +++ b/crc32.c @@ -23,6 +23,8 @@ # endif #elif __APPLE__ # include +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragoFly__) +# include #else # include #endif