#ifndef UPNPINET_H #define UPNPINET_H /*! * \file * * \brief Provides a platform independent way to include TCP/IP types and functions. */ #ifdef WIN32 #include #include #include #define UpnpCloseSocket closesocket #else #include #if (defined(BSD) && BSD >= 199306) || defined (__FreeBSD_kernel__) #include /* Do not move or remove the include below for "sys/socket"! * Will break FreeBSD builds. */ #include #endif #include #include /* for close(). Do not include in WIN32. */ #define SOCKET int #define INVALID_SOCKET ((SOCKET)(-1)) #define UpnpCloseSocket close #endif #endif /* UPNPINET_H */