From 10de9fcbf18316719bf35dbe99522cba670b7d38 Mon Sep 17 00:00:00 2001
From: Alexander Traud <pabstraud@compuserve.com>
Date: Sat, 23 Jun 2018 08:33:34 +0200
Subject: [PATCH] chan_ooh323: IPTOS_MINCOST is not defined on Solaris.

Furthermore, <sys/sockio.h> is required for SIOCGIF*.

ASTERISK-27938

Change-Id: Idc9153ece769944765b66122efb11728d8d8ebde
---
 addons/chan_ooh323.c          | 4 ++++
 addons/ooh323c/src/ooSocket.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c
index 4ab90be3a1..6a65b5fff9 100644
--- a/addons/chan_ooh323.c
+++ b/addons/chan_ooh323.c
@@ -73,6 +73,10 @@
 #include "chan_ooh323.h"
 #include <math.h>
 
+#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 <sys/sockio.h>
+#endif
+
 #include "asterisk/io.h"
 #include "asterisk/lock.h"
 #include "asterisk/utils.h"
-- 
GitLab