]> git.gsnw.org Git - fping.git/commitdiff
Portability Fix: <netinet/ip_icmp.h> requires n_time definition from <netinet/in_systm.h>
authorPeter Bray <illumino@github>
Sat, 19 Nov 2016 12:57:17 +0000 (23:57 +1100)
committerPeter Bray <illumino@github>
Sat, 19 Nov 2016 12:59:50 +0000 (23:59 +1100)
The include file <netinet/in_systm.h> is already used in src/fping.c,
so hopefully it should not be problem on other systems to include it here.

Discovered on Solaris 10 Update 8, tested on Solaris 10 Update 11 and Solaris 11.2

src/socket4.c

index 12b7803485696e09fd4e9d1edf9ed32fb523710e..fe3e3523e8505f8886f8d1a1a8aaa7deb93e013e 100644 (file)
@@ -36,6 +36,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/ip.h>
+#include <netinet/in_systm.h>
 #include <netinet/ip_icmp.h>
 #include <netdb.h>
 #include <stdio.h>