mremap is not a macro, check explicitly for freebsd and apple and define it only then.

This commit is contained in:
Con Kolivas 2011-03-23 08:34:09 +11:00
parent 915edb78a2
commit e561a9a080

View file

@ -90,8 +90,8 @@ typedef uint32_t u32;
typedef struct rzip_control rzip_control;
typedef struct md5_ctx md5_ctx;
#ifndef mremap
# define mremap fake_mremap
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
#define mremap fake_mremap
#endif
#define bswap_32(x) \