views:

114

answers:

1

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.

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?

+2  A: 

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

chpwn
Surprisingly (at least to me) that did indeed work. Still odd it's not included in the SDK. But thanks to the pointer! At least I got it compiling now.
tcurdt
I noticed that the header was present in the Simulator SDK but not in the iPhone SDK (3.2+).
Laurent Etiemble