Fix sar.c build on FreeBSD 5.5.
[srvx.git] / src / sar.c
index 545c89005b7170996bc7d94c91129c0c124133ea..4a50677dae49eb9e3092d90ff9fe67c9b7a7dd7c 100644 (file)
--- a/src/sar.c
+++ b/src/sar.c
 #include "log.h"
 #include "timeq.h"
 
+#if defined(HAVE_NETINET_IN_H)
+# include <netinet/in.h> /* sockaddr_in6 on some BSDs */
+#endif
+
 static const char hexdigits[] = "0123456789abcdef";
 
 struct dns_rr;