Fix compilation error in upnp/src/inc/ssdplib.h when compiling in OS X

(the netinet/* headers are not available).

Patch submitted by Chandra (inactiveneurons).
This commit is contained in:
Marcelo Roberto Jimenez
2010-09-07 14:51:38 -03:00
parent b8e9628140
commit 934bd2682f
2 changed files with 13 additions and 5 deletions

View File

@@ -47,15 +47,17 @@
#ifdef WIN32
#else
#else /* WIN32 */
#include <syslog.h>
#include <sys/socket.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#ifndef __APPLE__
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#endif /* __APPLE__ */
#include <sys/time.h>
#include <arpa/inet.h>
#endif
#endif /* WIN32 */
/* Enumeration to define all different types of ssdp searches */