From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 10/9] xap_helper.h: fix CPP error on non-glibc
Date: Mon, 20 May 2024 18:59:24 +0000 [thread overview]
Message-ID: <20240520185924.M219491@dcvr> (raw)
In-Reply-To: <20240519215509.2267117-4-e@80x24.org>
Noticed on a FreeBSD system.
---
lib/PublicInbox/xap_helper.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/xap_helper.h b/lib/PublicInbox/xap_helper.h
index 831afdc6..51ab48bf 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
next prev parent reply other threads:[~2024-05-20 19:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-19 21:55 [PATCH 0/9] fixes noticed while working on indexheader Eric Wong
2024-05-19 21:55 ` [PATCH 1/9] config: dedupe ibx->{newsgroup} Eric Wong
2024-05-19 21:55 ` [PATCH 2/9] xap_helper: key search instances by -Q params, too Eric Wong
2024-05-19 21:55 ` [PATCH 3/9] xap_helper.h: use khashl.h instead of hsearch(3) Eric Wong
2024-05-20 18:59 ` Eric Wong [this message]
2024-05-19 21:55 ` [PATCH 4/9] xap_helper.h: use xcalloc to simplify error checking Eric Wong
2024-05-19 21:55 ` [PATCH 5/9] xap_helper.h: memoize Xapian handles with khashl Eric Wong
2024-05-19 21:55 ` [PATCH 6/9] xap_helper: expire DB handles when FD table is near full Eric Wong
2024-05-19 21:55 ` [PATCH 7/9] xap_helper: drop DB handles on EMFILE/ENFILE/etc Eric Wong
2024-05-19 21:55 ` [PATCH 8/9] lei_saved_search: drop ->altid_map method Eric Wong
2024-05-19 21:55 ` [PATCH 9/9] www_text: fix /$INBOX/_/text/help/raw endpoint Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240520185924.M219491@dcvr \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).