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