+2023-04-05 Bruno Haible <bruno@clisp.org>
+
+ 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.
+
2023-04-05 Bruno Haible <bruno@clisp.org>
btowc: Fix file lists.
/* Name of system error code.
- Copyright (C) 2020-2022 Free Software Foundation, Inc.
+ Copyright (C) 2020-2023 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
case EDONTREPLY: return "EDONTREPLY";
#endif
/* FreeBSD */
- #if defined EDOOFUS
+ #if defined EDOOFUS && EDOOFUS != EINVAL
case EDOOFUS: return "EDOOFUS";
#endif
/* Linux, HP-UX, Cygwin */
/* Test of strerrorname_np() function.
- Copyright (C) 2020-2022 Free Software Foundation, Inc.
+ Copyright (C) 2020-2023 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
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 */