From 089d714af0cd1002ee6d93a424dcdee3adc47095 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Tue, 21 May 2019 13:38:44 +0200 Subject: [PATCH] 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. --- zzip/fseeko.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.40.0