File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / sys-socket.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:47 2013 UTC (10 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

    1: #ifndef WIN32_SOCKET_H
    2: #define WIN32_SOCKET_H
    3: 
    4: #ifdef __WIN32
    5: 
    6: #include <winsock2.h>
    7: 
    8: #define ECONNRESET WSAECONNRESET
    9: #define EINPROGRESS WSAEINPROGRESS
   10: #define EALREADY WSAEALREADY
   11: #define ECONNABORTED WSAECONNABORTED
   12: #define ioctl ioctlsocket
   13: #define hstrerror(x) ""
   14: #else
   15: #include <sys/socket.h>
   16: #include <sys/ioctl.h>
   17: #include <netinet/in.h>
   18: #include <netinet/tcp.h>
   19: #include <sys/un.h>
   20: #include <arpa/inet.h>
   21: 
   22: #include <netdb.h>
   23: #endif
   24: 
   25: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>