How to build libdsm for iOS system?

Hi, macromizer. Thanks for your good job. 
I'm trying to build libdsm library for iOS system, but no success. 
Can you share some details to us? Any help will be grateful.
We'll have to find some other solution because it'll make the
out-of-xcode/non-ios build fail

On Sat, Oct 4, 2014 at 4:24 PM, macromizer <notifications@github.com> wrote:

> In bin/dsm.c:
>
> > @@ -31,7 +31,14 @@
> >  #include <sys/socket.h>
> >  #include <netinet/in.h>
> >  #include <netinet/ip.h>
> > -#include <netinet/udp.h>
> > +#if __APPLE__
> > +  #include "TargetConditionals.h"
>
> Yes, it provides additional defines for knowing if you are compiling for
> the iOS simulator or an actual device. The header does not exist on iOS but
> it is there if you build for the simulator.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/videolabs/libdsm/pull/22/files#r18432395>.
>