From 22f9d730898d2dfcc03a484e65e1f8fc3675225f Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 15 Oct 2025 15:39:43 +0200 Subject: [PATCH] io: Handle clashing error codes on AIX Regressed with 2c2578b6f. Fixes #999. --- xmlIO.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmlIO.c b/xmlIO.c index 7f82f4b84..789fc5e72 100644 --- a/xmlIO.c +++ b/xmlIO.c @@ -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