[pjsip] iOS/MacOS PJSip socklen_t conflict with socket.h
来源:互联网 发布:帝国cms建站教程 编辑:程序博客网 时间:2024/05/29 19:28
转载自:http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-November/012121.html
socketcc 集成到 xcode 项目中的时候,
出现了 socklen_t redefinition 的错误,解决办法如下:
Hi all, I noticed theres a redefinition conflict between socklen_t inpjlib/include/pj/compat/os_darwin.h (defined as int)and between the base OS socket.h (defined as __darwin_socklen_t - which is __uint32_t)The diff below fixes it and/or you could redefine it as typedef __darwin_socklen_t socklen_t;Index: os_darwinos.h===================================================================--- os_darwinos.h(revision 3362)+++ os_darwinos.h(working copy)@@ -95,7 +95,10 @@ /* * Socket related */+#ifndef _SOCKLEN_T+#define _SOCKLEN_T typedef int socklen_t;+#endif /* Set 1 if native sockaddr_in has sin_len member. * Default: 0
- [pjsip] iOS/MacOS PJSip socklen_t conflict with socket.h
- PJSIP
- pjsip
- pjsip
- pjsip
- pjsip
- pjsip
- pjsip
- PJSIP
- pjsip
- PJSIP
- iOS开发之PJSIP
- ios PJSIP(PJSUA)
- IOS PJSIP源码编译
- Start with PJSIP on windows -----pjsip-2.2.1
- How to Make an iOS VoIP App With Pjsip: Part 1
- How to Make an iOS VoIP App With Pjsip: Part 2
- How to Make an iOS VoIP App With Pjsip: Part 3
- 什么是CALayer?
- 求函数的值
- linux split分割大文件的用法
- 自己封装的PCM写成WAV文件 欢迎指点
- auditctl
- [pjsip] iOS/MacOS PJSip socklen_t conflict with socket.h
- 正确理解ThreadLocal
- 严重: Exception starting filter struts2 java.lang.NullPointerException
- 润乾报表V5产品集成方式介绍
- 导入带隐藏列的Excel发生错位
- ActionContext和ServletActionContext小结
- html自定义checkbox、radio、select —— select篇
- android 多线程下载 支持断点续传的工具类
- csapp2e 家庭作业 6.42 6.43 6.44