File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / sys-socket.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

    1: #ifndef WIN32_SOCKET_H
    2: #define WIN32_SOCKET_H
    3: #include "first.h"
    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>
   24: 
   25: #ifdef HAVE_SYS_FILIO_H
   26: #include <sys/filio.h>  /* FIONREAD (for illumos (OpenIndiana)) */
   27: #endif
   28: 
   29: #endif
   30: 
   31: #endif

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