mirror of
https://github.com/coturn/coturn.git
synced 2025-10-25 04:51:04 +02:00
sctp compilation
This commit is contained in:
parent
6c247bbbae
commit
eee9dae321
13
configure
vendored
13
configure
vendored
@ -1162,10 +1162,13 @@ fi
|
|||||||
###############################
|
###############################
|
||||||
|
|
||||||
if [ -z "${TURN_NO_SCTP}" ] ; then
|
if [ -z "${TURN_NO_SCTP}" ] ; then
|
||||||
if ! [ -f "/usr/include/linux/sctp.h" ] ; then
|
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
|
||||||
if ! [ -f "/usr/include/netinet/sctp.h" ] ; then
|
TURN_SCTP_INCLUDE=`find /usr/include/ -name sctp.h`
|
||||||
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
|
||||||
fi
|
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
||||||
|
else
|
||||||
|
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=${TURN_SCTP_INCLUDE}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
||||||
@ -1175,7 +1178,7 @@ fi
|
|||||||
# So, what we have now:
|
# So, what we have now:
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
OSCFLAGS="${OSCFLAGS} ${TURN_NO_SCTP} ${TURN_NO_THREAD_BARRIERS} ${TURN_NO_DTLS} ${TURN_NO_GCM} ${TURN_NO_TLS} -DINSTALL_PREFIX=${PREFIX} -DTURNDB=${TURNDBDIR}/turndb"
|
OSCFLAGS="${OSCFLAGS} ${TURN_NO_SCTP} ${TURN_SCTP_INCLUDE} ${TURN_NO_THREAD_BARRIERS} ${TURN_NO_DTLS} ${TURN_NO_GCM} ${TURN_NO_TLS} -DINSTALL_PREFIX=${PREFIX} -DTURNDB=${TURNDBDIR}/turndb"
|
||||||
|
|
||||||
if ! [ -z "${TURN_ACCEPT_RPATH}" ] ; then
|
if ! [ -z "${TURN_ACCEPT_RPATH}" ] ; then
|
||||||
if [ -z "${TURN_DISABLE_RPATH}" ] ; then
|
if [ -z "${TURN_DISABLE_RPATH}" ] ; then
|
||||||
|
|||||||
@ -50,12 +50,10 @@
|
|||||||
#include "hiredis_libevent2.h"
|
#include "hiredis_libevent2.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(TURN_NO_SCTP)
|
#if !defined(TURN_NO_SCTP) && defined(TURN_SCTP_INCLUDE)
|
||||||
#if defined(__linux__) || defined(__LINUX__) || defined(__linux) || defined(linux__) || defined(LINUX) || defined(__LINUX) || defined(LINUX__)
|
#define Q(x) #x
|
||||||
#include <linux/sctp.h>
|
#define QUOTE(x) Q(x)
|
||||||
#else
|
#include QUOTE(TURN_SCTP_INCLUDE)
|
||||||
#include <netinet/sctp.h>
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Compilation test:
|
/* Compilation test:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user