开发者

no route.h on the iPhone SDK

开发者 https://www.devze.com 2022-12-16 03:09 出处:网络
I am trying to build some code that is originally target at OSX/BSD/Linux for the iPhone. It uses struct rt_msghdr from route.h开发者_JAVA百科 but as it turns out this header is not available in the i

I am trying to build some code that is originally target at OSX/BSD/Linux for the iPhone. It uses struct rt_msghdr from route.h开发者_JAVA百科 but as it turns out this header is not available in the iPhone SDK.

Looks like the function tries to find the available bind addresses as a list of struct addrinfo.

Does anyone have a suggestion how to proceed here?


Copy the header into the project and change the includes to be local, that often works for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消