From d9449298c04ad6b345a3e5f077da66b6e8962029 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Thu, 27 Sep 2007 16:56:23 +0000 Subject: [PATCH] AIX treats ENOTEMPTY and EEXIST as the same value. Reported by Chris Cambly [SVN r39577] --- src/error_code.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/error_code.cpp b/src/error_code.cpp index a6d5bc3..8cebf28 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -208,7 +208,9 @@ namespace case ENOSYS: return make_error_condition( function_not_supported ); case ENOTCONN: return make_error_condition( not_connected ); case ENOTDIR: return make_error_condition( not_a_directory ); + # if ENOTEMPTY != EEXIST // AIX treats ENOTEMPTY and EEXIST as the same value case ENOTEMPTY: return make_error_condition( directory_not_empty ); + # endif // ENOTEMPTY != EEXIST case ENOTRECOVERABLE: return make_error_condition( state_not_recoverable ); case ENOTSOCK: return make_error_condition( not_a_socket ); case ENOTSUP: return make_error_condition( not_supported );