]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_ooh323: IPTOS_MINCOST is not defined on Solaris.
authorAlexander Traud <pabstraud@compuserve.com>
Sat, 23 Jun 2018 06:33:34 +0000 (08:33 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Mon, 9 Jul 2018 07:45:47 +0000 (02:45 -0500)
Furthermore, <sys/sockio.h> is required for SIOCGIF*.

ASTERISK-27938

Change-Id: Idc9153ece769944765b66122efb11728d8d8ebde

addons/chan_ooh323.c
addons/ooh323c/src/ooSocket.c

index ac6d808dcd9d4bfbe765a10a8a3eecc42f35341a..529d3ca24ab955ed76f5f524e1404cb7c9fcb435 100644 (file)
 #include "chan_ooh323.h"
 #include <math.h>
 
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST  0x02
+#endif
+
 #define FORMAT_STRING_SIZE     512
 
 /* Defaults */
index 1a6a7dbe1a387b424bd8b63ec683234e7adb3317..55bb0ac17ebd08d063a3e8930b3739ea4962a56a 100644 (file)
  *****************************************************************************/
 #include "asterisk.h"
 
+#ifdef SOLARIS
+#include <sys/sockio.h>
+#endif
+
 #include "asterisk/io.h"
 #include "asterisk/lock.h"
 #include "asterisk/utils.h"