summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcls%seawood.org <devnull@localhost>2001-08-17 13:56:22 +0000
committercls%seawood.org <devnull@localhost>2001-08-17 13:56:22 +0000
commit71aace5e5215e5f5ec5200959429f501dc22f71a (patch)
tree324662ce475aea98ed21888c1ad2fd8ec1097190
parentca12884f39d1906e2a120ae0ea1c247abbfc154f (diff)
downloadnspr-hg-71aace5e5215e5f5ec5200959429f501dc22f71a.tar.gz
Bugzilla bug 95744: handle the case that ENOTEMPTY and EEXIST have the
same value. (They do on AIX 4.3.)
-rw-r--r--pr/src/md/unix/unix_errors.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pr/src/md/unix/unix_errors.c b/pr/src/md/unix/unix_errors.c
index 7164675b..1ce52e68 100644
--- a/pr/src/md/unix/unix_errors.c
+++ b/pr/src/md/unix/unix_errors.c
@@ -383,9 +383,14 @@ void _MD_unix_map_rmdir_error(int err)
PRErrorCode prError;
switch (err) {
+ /*
+ * On AIX 4.3, ENOTEMPTY is defined as EEXIST.
+ */
+#if ENOTEMPTY != EEXIST
case ENOTEMPTY:
prError = PR_DIRECTORY_NOT_EMPTY_ERROR;
break;
+#endif
case EEXIST:
prError = PR_DIRECTORY_NOT_EMPTY_ERROR;
break;