From 003e2870cd5b6408dadd1f4ed729f34650d0a642 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Edgar=20Fu=C3=9F?= Date: Thu, 9 Jul 2020 12:42:22 +0200 Subject: [PATCH] Revert re-ordering of pagesize definition Revert a re-ordering of #ifdef'd block that may have lead to pagesize being defined, but unused. --- src/memory.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/memory.c b/src/memory.c index 60546a0cb..4bf4ed2c5 100644 --- a/src/memory.c +++ b/src/memory.c @@ -68,10 +68,6 @@ static mach_port_t port_host; static vm_size_t pagesize; /* #endif HAVE_HOST_STATISTICS */ -#elif HAVE_SYSCTL -static int pagesize; -/* #endif HAVE_SYSCTL */ - #elif HAVE_SYSCTLBYNAME /* no global variables */ /* #endif HAVE_SYSCTLBYNAME */ @@ -86,6 +82,11 @@ static kstat_t *ksp; static kstat_t *ksz; /* #endif HAVE_LIBKSTAT */ +#elif HAVE_SYSCTL && __OpenBSD__ +/* OpenBSD variant does not have sysctlbyname */ +static int pagesize; +/* #endif HAVE_SYSCTL && __OpenBSD__ */ + #elif HAVE_LIBSTATGRAB /* no global variables */ /* endif HAVE_LIBSTATGRAB */ -- 2.47.2