Portability Fix: <netinet/ip_icmp.h> requires n_time definition from <netinet/in_systm.h>

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
pull/107/head
Peter Bray 8 years ago
parent dde37baac2
commit 79ba8c9ae7

@ -36,6 +36,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/ip.h> #include <netinet/ip.h>
#include <netinet/in_systm.h>
#include <netinet/ip_icmp.h> #include <netinet/ip_icmp.h>
#include <netdb.h> #include <netdb.h>
#include <stdio.h> #include <stdio.h>

Loading…
Cancel
Save