]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_helper.h: fix CPP error on non-glibc
authorEric Wong <e@80x24.org>
Mon, 20 May 2024 18:59:24 +0000 (18:59 +0000)
committerEric Wong <e@80x24.org>
Mon, 20 May 2024 18:59:37 +0000 (18:59 +0000)
Noticed on a FreeBSD system.

lib/PublicInbox/xap_helper.h

index 831afdc66f4f1bd967eaa0d710d486684ed61abb..51ab48bfda57979cce8f74753bdfeab1169d7041 100644 (file)
@@ -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