1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

io: Handle clashing error codes on AIX

Regressed with 2c2578b6f. Fixes #999.
This commit is contained in:
Nick Wellnhofer
2025-10-15 15:39:43 +02:00
parent 870c036341
commit 22f9d73089

View File

@@ -498,7 +498,8 @@ xmlIOErr(int err)
#ifdef ENOTDIR
case ENOTDIR: code = XML_IO_ENOTDIR; break;
#endif
#ifdef ENOTEMPTY
/* AIX uses the same value for ENOTEMPTY and EEXIST */
#if defined(ENOTEMPTY) && ENOTEMPTY != EEXIST
case ENOTEMPTY: code = XML_IO_ENOTEMPTY; break;
#endif
#ifdef ENOTSUP