From: Patrick Steinhardt Date: Tue, 21 May 2019 11:38:44 +0000 (+0200) Subject: zzip: fseeko: do not redefine `PAGESIZE` X-Git-Tag: v0.13.70~2^2~11^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=089d714af0cd1002ee6d93a424dcdee3adc47095;p=zziplib zzip: fseeko: do not redefine `PAGESIZE` If we've already pulled in the `PAGESIZE` macro via some transitive headers, we don't want to redefine its value. --- diff --git a/zzip/fseeko.c b/zzip/fseeko.c index f895690..ac66784 100644 --- a/zzip/fseeko.c +++ b/zzip/fseeko.c @@ -76,7 +76,9 @@ /* we try to round all seeks to the pagesize - since we do not use * the sys/mmap interface we have to guess a good value here: */ -#define PAGESIZE 8192 +#ifndef PAGESIZE +# define PAGESIZE 8192 +#endif #ifdef DEBUG #define debug1(msg) do { fprintf(stderr, "DEBUG: %s : " msg "\n", __func__); } while(0)