summaryrefslogtreecommitdiff
path: root/include/apr_errno.h
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-08-06 22:05:47 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-08-06 22:05:47 +0000
commit5a35ba1b85320dde09a411326655e8219711dd57 (patch)
treeb5d5479764d50c75c1d8dce53f630a415e711444 /include/apr_errno.h
parent5e7034521bb289fe68ccfc470b7ef6b7bc65b94b (diff)
downloadlibapr-5a35ba1b85320dde09a411326655e8219711dd57.tar.gz
Added a #define for the NetWare version of apr_get_netos_error() that
handles WinSock error codes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62115 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_errno.h')
-rw-r--r--include/apr_errno.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/apr_errno.h b/include/apr_errno.h
index 479bca39d..dbb47e468 100644
--- a/include/apr_errno.h
+++ b/include/apr_errno.h
@@ -702,7 +702,6 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
#else /* !def OS2 || WIN32 */
-
/*
* os error codes are clib error codes
*/
@@ -711,6 +710,9 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
#define apr_get_os_error() (errno)
#define apr_set_os_error(e) (errno = (e))
+#ifdef NETWARE
+#define apr_get_netos_error() (APR_FROM_OS_ERROR(WSAGetLastError()))
+#endif
#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS)