You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2001/08/07 00:05:47 UTC

cvs commit: apr/include apr_errno.h

bnicholes    01/08/06 15:05:47

  Modified:    include  apr_errno.h
  Log:
  Added a #define for the NetWare version of apr_get_netos_error() that
  handles WinSock error codes.
  
  Revision  Changes    Path
  1.76      +3 -1      apr/include/apr_errno.h
  
  Index: apr_errno.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_errno.h,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- apr_errno.h	2001/07/19 00:11:56	1.75
  +++ apr_errno.h	2001/08/06 22:05:47	1.76
  @@ -702,7 +702,6 @@
   
   #else /* !def OS2 || WIN32 */
   
  -
   /*
    *  os error codes are clib error codes
    */
  @@ -711,6 +710,9 @@
   
   #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)