From e4c65b8a7fc8cb3176920d5808c9099c69367508 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 21 Mar 1998 13:36:20 +0000 Subject: On most other systems "out there", does not require the caller to #include first. I've lost count of the number of times I've had to patch this in porting code. The problem is the "struct timeval ifi_lastchange" in the mib stats. (most other systems don't have this, until 4.4bsd anyway). --- sys/net/if.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/net/if.h b/sys/net/if.h index 0a7a48e..32b5166 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -31,13 +31,21 @@ * SUCH DAMAGE. * * @(#)if.h 8.1 (Berkeley) 6/10/93 - * $Id: if.h,v 1.47 1997/10/12 20:25:11 phk Exp $ + * $Id: if.h,v 1.48 1998/01/13 02:56:21 wollman Exp $ */ #ifndef _NET_IF_H_ #define _NET_IF_H_ /* + * does not depend on on most other systems. This + * helps userland compatability. (struct timeval ifi_lastchange) + */ +#ifndef KERNEL +#include +#endif + +/* * Structure describing information about an interface * which may be of interest to management entities. */ -- cgit v1.1