Annotation of embedaddon/lighttpd/src/sys-socket.h, revision 1.1.1.2

1.1       misho       1: #ifndef WIN32_SOCKET_H
                      2: #define WIN32_SOCKET_H
1.1.1.2 ! misho       3: #include "first.h"
1.1       misho       4: 
                      5: #ifdef __WIN32
                      6: 
                      7: #include <winsock2.h>
                      8: 
                      9: #define ECONNRESET WSAECONNRESET
                     10: #define EINPROGRESS WSAEINPROGRESS
                     11: #define EALREADY WSAEALREADY
                     12: #define ECONNABORTED WSAECONNABORTED
                     13: #define ioctl ioctlsocket
                     14: #define hstrerror(x) ""
                     15: #else
                     16: #include <sys/socket.h>
                     17: #include <sys/ioctl.h>
                     18: #include <netinet/in.h>
                     19: #include <netinet/tcp.h>
                     20: #include <sys/un.h>
                     21: #include <arpa/inet.h>
                     22: 
                     23: #include <netdb.h>
1.1.1.2 ! misho      24: 
        !            25: #ifdef HAVE_SYS_FILIO_H
        !            26: #include <sys/filio.h>  /* FIONREAD (for illumos (OpenIndiana)) */
        !            27: #endif
        !            28: 
1.1       misho      29: #endif
                     30: 
                     31: #endif

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