libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit bc1ea341498590edefaf9502d3b924aeefd1e214
parent d60b990cc9f3831b2b1fbd43eeae650176e5ee53
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat,  6 Nov 2021 12:17:33 +0300

mhd_sockets: added more network error codes

Diffstat:
Msrc/microhttpd/mhd_sockets.h | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h @@ -605,6 +605,21 @@ typedef int MHD_SCKT_SEND_SIZE_; # else /* ! ENETDOWN */ # define MHD_SCKT_ENETDOWN_ MHD_SCKT_MISSING_ERR_CODE_ # endif /* ! ENETDOWN */ +# ifdef EALREADY +# define MHD_SCKT_EALREADY_ EALREADY +# else /* ! EALREADY */ +# define MHD_SCKT_EALREADY_ MHD_SCKT_MISSING_ERR_CODE_ +# endif /* ! EALREADY */ +# ifdef EINPROGRESS +# define MHD_SCKT_EINPROGRESS_ EINPROGRESS +# else /* ! EINPROGRESS */ +# define MHD_SCKT_EINPROGRESS_ MHD_SCKT_MISSING_ERR_CODE_ +# endif /* ! EINPROGRESS */ +# ifdef EISCONN +# define MHD_SCKT_EISCONN_ EISCONN +# else /* ! EISCONN */ +# define MHD_SCKT_EISCONN_ MHD_SCKT_MISSING_ERR_CODE_ +# endif /* ! EISCONN */ #elif defined(MHD_WINSOCK_SOCKETS) # define MHD_SCKT_EAGAIN_ WSAEWOULDBLOCK # define MHD_SCKT_EWOULDBLOCK_ WSAEWOULDBLOCK @@ -627,6 +642,9 @@ typedef int MHD_SCKT_SEND_SIZE_; # define MHD_SCKT_EOPNOTSUPP_ WSAEOPNOTSUPP # define MHD_SCKT_EACCESS_ WSAEACCES # define MHD_SCKT_ENETDOWN_ WSAENETDOWN +# define MHD_SCKT_EALREADY_ WSAEALREADY +# define MHD_SCKT_EINPROGRESS_ WSAEACCES +# define MHD_SCKT_EISCONN_ WSAEISCONN #endif /**