diff options
author | glebius <glebius@FreeBSD.org> | 2013-10-28 08:03:40 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-10-28 08:03:40 +0000 |
commit | c829949efacb31ac7d8dc8d4df99d801a43a2fec (patch) | |
tree | e4bff7360d78981171ea024ad2628393ab0fec4f /sys/net/if.h | |
parent | 9c54cb7e8ec1367dd664b17bceb913d02f9e109f (diff) | |
download | FreeBSD-src-c829949efacb31ac7d8dc8d4df99d801a43a2fec.zip FreeBSD-src-c829949efacb31ac7d8dc8d4df99d801a43a2fec.tar.gz |
- Make the prophecy from 1997 happen and remove if_var.h inclusion
from if.h.
- Remove unnecessary includes and declarations from if.h
- Remove unnecessary includes and declarations from if_var.h [1]
- Mark some declarations that are about to be removed in near
future with comments, explaning why this declaration is still
necessary.
- Protect eventhandler declarations with #ifdef SYS_EVENTHANDLER_H.
Obtained from: bdeBSD [1]
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 80a7112..cd9adb3 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -35,10 +35,6 @@ #include <sys/cdefs.h> -#ifdef _KERNEL -#include <sys/queue.h> -#endif - #if __BSD_VISIBLE /* * <net/if.h> does not depend on <sys/time.h> on most other systems. This @@ -49,8 +45,6 @@ #include <sys/time.h> #include <sys/socket.h> #endif - -struct ifnet; #endif /* @@ -537,10 +531,4 @@ struct if_nameindex *if_nameindex(void); unsigned int if_nametoindex(const char *); __END_DECLS #endif - -#ifdef _KERNEL -/* XXX - this should go away soon. */ -#include <net/if_var.h> -#endif - #endif /* !_NET_IF_H_ */ |