From a28def8d05eaa41455abb28092843de6bab736f9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 21 Sep 2011 16:38:00 +1000 Subject: [PATCH] Mremap is linux only, so reverse the check for its presence and use fake mremap everywhere else. --- lrzip_private.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lrzip_private.h b/lrzip_private.h index 4439621..6e3795b 100644 --- a/lrzip_private.h +++ b/lrzip_private.h @@ -90,8 +90,7 @@ typedef uint32_t u32; typedef struct rzip_control rzip_control; typedef struct md5_ctx md5_ctx; -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \ - defined(__APPLE__) || defined(__CYGWIN__) +#if !defined(__linux) #define mremap fake_mremap #endif