Fix compile error on Windows.
Include UpnpStdInt.h for ssize_t. Define sa_family_t in UpnpInet.h. (cherry picked from commit f7a801c3aec5a60d6422e2689b7189e7e94d560b)
This commit is contained in:
parent
0aa8228dac
commit
168444761d
@ -318,6 +318,13 @@ Version 1.8.0
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user