2008-07-27 05:06:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef UPNPINET_H
|
|
|
|
#define UPNPINET_H
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \brief Provides a platform independent way to include TCP/IP types and functions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#include <winsock2.h>
|
|
|
|
#include <Ws2tcpip.h>
|
|
|
|
#else
|
2010-03-21 16:42:40 +01:00
|
|
|
#include <sys/param.h>
|
|
|
|
#if (defined(BSD) && BSD >= 199306) || defined (__FreeBSD_kernel__)
|
|
|
|
#include <ifaddrs.h>
|
|
|
|
/* Do not move or remove the include below for "sys/socket"!
|
|
|
|
* Will break FreeBSD builds. */
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#endif
|
2008-07-27 05:06:21 +02:00
|
|
|
#include <netinet/in.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* UPNPINET_H */
|
|
|
|
|