| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] 2.6.3 orinoco.c patch to support ethtool get_link, Jean Tourrilhes |
|---|---|
| Next by Date: | RE: Submission #3 for S2io 10GbE driver, ravinandan arakali |
| Previous by Thread: | [PATCH] (repost) TCP westwood bw_sample, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] make netdevice.h more non-kernel friendly, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |