Fix compile error on Windows.
Include UpnpStdInt.h for ssize_t. Define sa_family_t in UpnpInet.h.
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
Version 1.6.16
|
||||
*******************************************************************************
|
||||
|
||||
2012-03-14 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||
|
||||
Fix compile error on Windows.
|
||||
|
||||
Include UpnpStdInt.h for ssize_t.
|
||||
Define sa_family_t in UpnpInet.h.
|
||||
|
||||
2012-03-14 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||
|
||||
Avoid ambiguous change of SsdpEvent in unique_service_name.
|
||||
|
||||
@@ -25,6 +25,13 @@
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
#define UpnpCloseSocket closesocket
|
||||
|
||||
#if(_WIN32_WINNT < 0x0600)
|
||||
typedef short sa_family_t;
|
||||
#else
|
||||
typedef ADDRESS_FAMILY sa_family_t;
|
||||
#endif
|
||||
|
||||
#else /* WIN32 */
|
||||
#include <sys/param.h>
|
||||
#if defined(__sun)
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
|
||||
#include "unixutil.h" /* for socklen_t, EAFNOSUPPORT */
|
||||
#include "upnp.h"
|
||||
#include "UpnpStdInt.h" /* for ssize_t */
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
Reference in New Issue
Block a user