浏览代码

modules:sipcapture: fixed uint types and IPPROTO_IPIP on Solaris.

		Thanks to Jason Penton <[email protected]> for the bug report and testing.
Alexandr Dubovikov 14 年之前
父节点
当前提交
1ced096557
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      modules/sipcapture/sipcapture.h

+ 6 - 0
modules/sipcapture/sipcapture.h

@@ -23,6 +23,12 @@
  *
  *
  */
  */
 
 
+#ifdef __OS_solaris
+typedef uint8_t u_int8_t;
+typedef uint16_t u_int16_t;
+#define IPPROTO_IPIP IPPROTO_ENCAP /* Solaris IPIP protocol has name ENCAP */
+#endif
+
 
 
 struct hep_hdr{
 struct hep_hdr{
     u_int8_t hp_v;            /* version */
     u_int8_t hp_v;            /* version */