On Sun, 2013-12-08 at 00:53 +0100, Per Juborg wrote: > Hi, > > I tested bith moving it and removing the include of net/if.h, both helped. > > Then I ran in to another include in tun.c to "net/if_tun.h" that don't exist in Apple headers so I removed that one. > > Now it got a bit more complicated. Can anyone make anything out of this? > make all-recursive > Making all in gl > make all-recursive > make[4]: Nothing to be done for `all-am'. > Making all in src > Making all in pcl > make[3]: Nothing to be done for `all'. > CC icmp-ping.o > In file included from icmp-ping.c:76: > /usr/include/netinet/ip_icmp.h:92:4: error: unknown type name 'n_short'; did you mean 'u_short'? > n_short icd_id; Try adding: #include <netinet/in_systm.h> before ip_icmp.h. regards, Nikos