diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-05 17:47:05 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-05 17:47:05 +0200 |
commit | 49fd88f0309a129872a405617b51b87d4edde43d (patch) | |
tree | 985d44ff0c6f8bc0bc6e57a2ee17e7792ae0264f /tests | |
parent | 514bdc3f7f0f38fd39b7e0ee6a59c4e2708923ec (diff) | |
download | gnulib-49fd88f0309a129872a405617b51b87d4edde43d.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-strerrorname_np.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |