diff options
author | peter <peter@FreeBSD.org> | 1998-03-21 13:36:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-03-21 13:36:20 +0000 |
commit | e4c65b8a7fc8cb3176920d5808c9099c69367508 (patch) | |
tree | 2a5813abffd3aedb8bb8ab82fed7194d76570ece /sys/net/if.h | |
parent | d172708658b0dd57913356a6fe449e0a6b3d9b76 (diff) | |
download | FreeBSD-src-e4c65b8a7fc8cb3176920d5808c9099c69367508.zip FreeBSD-src-e4c65b8a7fc8cb3176920d5808c9099c69367508.tar.gz |
On most other systems "out there", <net/if.h> does not require the caller
to #include <sys/time.h> 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).
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 10 |
1 files changed, 9 insertions, 1 deletions
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_ /* + * <net/if.h> does not depend on <sys/time.h> on most other systems. This + * helps userland compatability. (struct timeval ifi_lastchange) + */ +#ifndef KERNEL +#include <sys/time.h> +#endif + +/* * Structure describing information about an interface * which may be of interest to management entities. */ |