* [PATCH] make netdevice.h more non-kernel friendly
@ 2004-03-12 19:24 Stephen Hemminger
2004-03-15 21:38 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-03-12 19:24 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] make netdevice.h more non-kernel friendly
2004-03-12 19:24 [PATCH] make netdevice.h more non-kernel friendly Stephen Hemminger
@ 2004-03-15 21:38 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-03-15 21:38 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
On Fri, 12 Mar 2004 11:24:42 -0800
Stephen Hemminger <shemminger@osdl.org> wrote:
> 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.
Ok, fine with me.
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-15 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 19:24 [PATCH] make netdevice.h more non-kernel friendly Stephen Hemminger
2004-03-15 21:38 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).