From: Kolby Crouch Date: Sat, 15 May 2021 18:17:42 +0000 (-0500) Subject: Fix build on NetBSD X-Git-Tag: 2.0.4~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c91806258805d243080a934ebd169333d4f8ba46;p=thirdparty%2Fzlib-ng.git Fix build on NetBSD --- diff --git a/zutil_p.h b/zutil_p.h index 7dc2e3d35..f3830f35f 100644 --- a/zutil_p.h +++ b/zutil_p.h @@ -16,7 +16,7 @@ /* Function to allocate 16 or 64-byte aligned memory */ static inline void *zng_alloc(size_t size) { -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) void *ptr; return posix_memalign(&ptr, 64, size) ? NULL : ptr; #elif defined(_WIN32)