From: Eric Wong Date: Mon, 20 May 2024 18:59:24 +0000 (+0000) Subject: xap_helper.h: fix CPP error on non-glibc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=600e6553fb1e2dc5ead6231a28d0d3f0722e4fe9;p=thirdparty%2Fpublic-inbox.git xap_helper.h: fix CPP error on non-glibc Noticed on a FreeBSD system. --- diff --git a/lib/PublicInbox/xap_helper.h b/lib/PublicInbox/xap_helper.h index 831afdc66..51ab48bfd 100644 --- a/lib/PublicInbox/xap_helper.h +++ b/lib/PublicInbox/xap_helper.h @@ -95,7 +95,7 @@ static void *xcalloc(size_t nmemb, size_t size) #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) && \ MY_VER(__GLIBC__, __GLIBC_MINOR__, 0) >= MY_VER(2, 28, 0) # define HAVE_REALLOCARRAY 1 -#elif (defined(__OpenBSD__) || defined(__DragonFly__) || \ +#elif defined(__OpenBSD__) || defined(__DragonFly__) || \ defined(__FreeBSD__) || defined(__NetBSD__) # define HAVE_REALLOCARRAY 1 #endif