apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r936322 - /apr/apr/trunk/include/apr_errno.h
Date Wed, 21 Apr 2010 14:29:02 GMT
Author: bjh
Date: Wed Apr 21 14:29:02 2010
New Revision: 936322

URL: http://svn.apache.org/viewvc?rev=936322&view=rev
Log:
OS/2: Make APR_STATUS_IS_EDSOOPEN() and APR_STATUS_IS_ESYMNOTFOUND()
work correctly on OS/2.

Modified:
    apr/apr/trunk/include/apr_errno.h

Modified: apr/apr/trunk/include/apr_errno.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_errno.h?rev=936322&r1=936321&r2=936322&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_errno.h (original)
+++ apr/apr/trunk/include/apr_errno.h Wed Apr 21 14:29:02 2010
@@ -397,6 +397,9 @@ APR_DECLARE(char *) apr_strerror(apr_sta
 #if defined(WIN32)
 #define APR_STATUS_IS_EDSOOPEN(s)       ((s) == APR_EDSOOPEN \
                        || APR_TO_OS_ERROR(s) == ERROR_MOD_NOT_FOUND)
+#elif defined(OS2)
+#define APR_STATUS_IS_EDSOOPEN(s)       ((s) == APR_EDSOOPEN \
+                       || APR_TO_OS_ERROR(s) == ERROR_FILE_NOT_FOUND)
 #else
 #define APR_STATUS_IS_EDSOOPEN(s)       ((s) == APR_EDSOOPEN)
 #endif
@@ -418,6 +421,9 @@ APR_DECLARE(char *) apr_strerror(apr_sta
 #if defined(WIN32)
 #define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND \
                        || APR_TO_OS_ERROR(s) == ERROR_PROC_NOT_FOUND)
+#elif defined(OS2)
+#define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND \
+                       || APR_TO_OS_ERROR(s) == ERROR_INVALID_NAME)
 #else
 #define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND)
 #endif



Mime
View raw message