From: Alexander Traud Date: Sat, 23 Jun 2018 06:33:34 +0000 (+0200) Subject: chan_ooh323: IPTOS_MINCOST is not defined on Solaris. X-Git-Tag: 15.6.0-rc1~105^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50cb993c770a0fb4a25a18aca90413ade370ac69;p=thirdparty%2Fasterisk.git chan_ooh323: IPTOS_MINCOST is not defined on Solaris. Furthermore, is required for SIOCGIF*. ASTERISK-27938 Change-Id: Idc9153ece769944765b66122efb11728d8d8ebde --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index ac6d808dcd..529d3ca24a 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -73,6 +73,10 @@ #include "chan_ooh323.h" #include +#ifndef IPTOS_MINCOST +#define IPTOS_MINCOST 0x02 +#endif + #define FORMAT_STRING_SIZE 512 /* Defaults */ diff --git a/addons/ooh323c/src/ooSocket.c b/addons/ooh323c/src/ooSocket.c index 1a6a7dbe1a..55bb0ac17e 100644 --- a/addons/ooh323c/src/ooSocket.c +++ b/addons/ooh323c/src/ooSocket.c @@ -15,6 +15,10 @@ *****************************************************************************/ #include "asterisk.h" +#ifdef SOLARIS +#include +#endif + #include "asterisk/io.h" #include "asterisk/lock.h" #include "asterisk/utils.h"