From 49fd88f0309a129872a405617b51b87d4edde43d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 5 Apr 2023 17:47:05 +0200 Subject: strerrorname_np: Fix compilation error on Haiku. * lib/strerrorname_np.c (strerrorname_np): Avoid conflict between EDOOFUS and EINVAL. * tests/test-strerrorname_np.c (main): Likewise. --- tests/test-strerrorname_np.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test-strerrorname_np.c b/tests/test-strerrorname_np.c index ae2291fd97..49de0c750d 100644 --- a/tests/test-strerrorname_np.c +++ b/tests/test-strerrorname_np.c @@ -490,7 +490,7 @@ main (void) ASSERT (strcmp (strerrorname_np (EDONTREPLY), "EDONTREPLY") == 0); #endif /* FreeBSD */ - #if defined EDOOFUS + #if defined EDOOFUS && EDOOFUS != EINVAL ASSERT (strcmp (strerrorname_np (EDOOFUS), "EDOOFUS") == 0); #endif /* Linux, HP-UX, Cygwin */ -- cgit v1.2.1