From 90d1e21589b67ca8e7af3567b56c1aa938b3c05a Mon Sep 17 00:00:00 2001 From: chl Date: Sat, 7 Feb 2009 15:06:04 +0000 Subject: add missing headers needed for warn() and err(). ok claudio@ ray@ --- usr.bin/netstat/atalk.c | 3 ++- usr.bin/netstat/if.c | 3 ++- usr.bin/netstat/inet.c | 3 ++- usr.bin/netstat/inet6.c | 5 +++-- usr.bin/netstat/mroute.c | 5 +++-- usr.bin/netstat/mroute6.c | 5 +++-- 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/usr.bin/netstat/atalk.c b/usr.bin/netstat/atalk.c index 660a56d6c7a..674b2935f58 100644 --- a/usr.bin/netstat/atalk.c +++ b/usr.bin/netstat/atalk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atalk.c,v 1.16 2007/12/19 01:47:00 deraadt Exp $ */ +/* $OpenBSD: atalk.c,v 1.17 2009/02/07 15:06:04 chl Exp $ */ /* $NetBSD: atalk.c,v 1.2 1997/05/22 17:21:26 christos Exp $ */ /* @@ -47,6 +47,7 @@ #include #include +#include #include #include #include diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index a5ba2eaa05c..5b9b48c580f 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.59 2009/01/26 20:30:26 claudio Exp $ */ +/* $OpenBSD: if.c,v 1.60 2009/02/07 15:06:04 chl Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -45,6 +45,7 @@ #include #include +#include #include #include #include diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 57d462b5058..8c1140ef8b0 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.c,v 1.109 2009/02/02 17:19:13 mbalmer Exp $ */ +/* $OpenBSD: inet.c,v 1.110 2009/02/07 15:06:04 chl Exp $ */ /* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */ /* @@ -75,6 +75,7 @@ #include #include +#include #include #include #include diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index 65db5029a48..4226027f161 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet6.c,v 1.36 2007/12/19 01:47:00 deraadt Exp $ */ +/* $OpenBSD: inet6.c,v 1.37 2009/02/07 15:06:04 chl Exp $ */ /* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ /* * Copyright (c) 1983, 1988, 1993 @@ -58,10 +58,11 @@ #endif #include +#include +#include #include #include #include -#include #include "netstat.h" struct socket sockb; diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c index e11be3c2aba..c3441090c55 100644 --- a/usr.bin/netstat/mroute.c +++ b/usr.bin/netstat/mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mroute.c,v 1.17 2007/12/14 18:35:46 deraadt Exp $ */ +/* $OpenBSD: mroute.c,v 1.18 2009/02/07 15:06:04 chl Exp $ */ /* $NetBSD: mroute.c,v 1.10 1996/05/11 13:51:27 mycroft Exp $ */ /* @@ -56,10 +56,11 @@ #include #undef _KERNEL +#include +#include #include #include #include -#include #include "netstat.h" static void print_bw_meter(struct bw_meter *bw_meter, int *banner_printed); diff --git a/usr.bin/netstat/mroute6.c b/usr.bin/netstat/mroute6.c index 154ae0f3df9..d92c15fcddb 100644 --- a/usr.bin/netstat/mroute6.c +++ b/usr.bin/netstat/mroute6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mroute6.c,v 1.10 2007/12/14 18:35:46 deraadt Exp $ */ +/* $OpenBSD: mroute6.c,v 1.11 2009/02/07 15:06:04 chl Exp $ */ /* * Copyright (C) 1998 WIDE Project. @@ -79,8 +79,9 @@ #include #undef _KERNEL -#include +#include #include +#include #include "netstat.h" #define WID_ORG (lflag ? 39 : (nflag ? 29 : 18)) /* width of origin column */ -- cgit v1.2.3-59-g8ed1b