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.
Yes, it provides additional defines for knowing if you are compiling for the iOS simulator or an actual device. The <netinet/udp.h> header does not exist on iOS but it is there if you build for the simulator.