Fix compilation on GNU/Hurd
This commit is contained in:
parent
062ac0c926
commit
89ad5e6779
@ -2,6 +2,10 @@
|
||||
Version 1.6.19
|
||||
*******************************************************************************
|
||||
|
||||
2013-10-28 Pino Toscano <pinotree(at)users.sourceforge.net>
|
||||
|
||||
Fix compilation on GNU/Hurd
|
||||
|
||||
2013-10-28 Peng <howtofly(at)gmail.com>
|
||||
|
||||
Fix return value of http_RecvPostMessage and update httpparser.c's comments
|
||||
|
1
THANKS
1
THANKS
@ -56,6 +56,7 @@ exempt of errors.
|
||||
- Paul Vixie
|
||||
- Peng
|
||||
- Peter Hartley
|
||||
- Pino Toscano (pinotree)
|
||||
- Rene Hexel
|
||||
- Robert Buckley (rbuckley)
|
||||
- Robert Gingher (robsbox)
|
||||
|
@ -50,7 +50,7 @@ extern "C" {
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#if defined(BSD)
|
||||
#if defined(BSD) && !defined(__GNU__)
|
||||
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
|
||||
#endif
|
||||
|
||||
|
@ -814,7 +814,7 @@ static int create_ssdp_sock_v4(
|
||||
ret = UPNP_E_SOCKET_ERROR;
|
||||
goto error_handler;
|
||||
}
|
||||
#if defined(BSD) || defined(__OSX__) || defined(__APPLE__)
|
||||
#if (defined(BSD) && !defined(__GNU__)) || defined(__OSX__) || defined(__APPLE__)
|
||||
onOff = 1;
|
||||
ret = setsockopt(*ssdpSock, SOL_SOCKET, SO_REUSEPORT,
|
||||
(char *)&onOff, sizeof(onOff));
|
||||
@ -956,7 +956,7 @@ static int create_ssdp_sock_v6(
|
||||
ret = UPNP_E_SOCKET_ERROR;
|
||||
goto error_handler;
|
||||
}
|
||||
#if defined(BSD) || defined(__OSX__) || defined(__APPLE__)
|
||||
#if (defined(BSD) && !defined(__GNU__)) || defined(__OSX__) || defined(__APPLE__)
|
||||
onOff = 1;
|
||||
ret = setsockopt(*ssdpSock, SOL_SOCKET, SO_REUSEPORT,
|
||||
(char *)&onOff, sizeof(onOff));
|
||||
@ -1069,7 +1069,7 @@ static int create_ssdp_sock_v6_ula_gua(
|
||||
ret = UPNP_E_SOCKET_ERROR;
|
||||
goto error_handler;
|
||||
}
|
||||
#if defined(BSD) || defined(__OSX__) || defined(__APPLE__)
|
||||
#if (defined(BSD) && !defined(__GNU__)) || defined(__OSX__) || defined(__APPLE__)
|
||||
onOff = 1;
|
||||
ret = setsockopt(*ssdpSock, SOL_SOCKET, SO_REUSEPORT,
|
||||
(char *)&onOff, sizeof(onOff));
|
||||
|
Loading…
Reference in New Issue
Block a user