netdev
[Top] [All Lists]

[PATCH] make netdevice.h more non-kernel friendly

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH] make netdevice.h more non-kernel friendly
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Fri, 12 Mar 2004 11:24:42 -0800
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
Discovered this trying to build iproute2 with 2.6.4.  The netdevice.h drags
in a lot of stuff that it doesn't need for the non-kernel interface.
Just moving the ifdef up a little got rid of the issues.


diff -Nru a/include/linux/netdevice.h b/include/linux/netdevice.h
--- a/include/linux/netdevice.h Fri Mar 12 11:22:02 2004
+++ b/include/linux/netdevice.h Fri Mar 12 11:22:02 2004
@@ -29,11 +29,11 @@
 #include <linux/if_ether.h>
 #include <linux/if_packet.h>
 
+#ifdef __KERNEL__
 #include <asm/atomic.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>
 
-#ifdef __KERNEL__
 #include <linux/config.h>
 #include <linux/device.h>
 #include <linux/percpu.h>

<Prev in Thread] Current Thread [Next in Thread>