在iPhone SDK没有route.h [英] no route.h on the iPhone SDK

查看:271
本文介绍了在iPhone SDK没有route.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一些code,它最初的目标在OSX / BSD / Linux上的iPhone。它采用结构rt_msghdr route.h ,但事实证明这个标题是不是在iPhone SDK中提供。

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 but as it turns out this header is not available in the iPhone SDK.

看起来像函数试图找到可用的绑定地址作为清单结构addrinfo中的

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.

这篇关于在iPhone SDK没有route.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆