diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-04 19:56:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-04 19:56:57 +0000 |
commit | 84de2f06d84e2ba7aef3bba62b3a4833bb2fb6ca (patch) | |
tree | 57479316a7a27741eab68ab5f1df99dd7f0f62dc /sim/bfin/dv-eth_phy.c | |
parent | 6597b100b5034a27219b7c5823af25747f4d27f5 (diff) | |
download | fsf-binutils-gdb-84de2f06d84e2ba7aef3bba62b3a4833bb2fb6ca.zip fsf-binutils-gdb-84de2f06d84e2ba7aef3bba62b3a4833bb2fb6ca.tar.gz fsf-binutils-gdb-84de2f06d84e2ba7aef3bba62b3a4833bb2fb6ca.tar.bz2 |
sim: bfin: drop old linux/mii.h workarounds
We had some workarounds for old linux/mii.h headers, but it breaks with
newer ones. So tweak the checks a bit to work with newer ones. We'll
worry about older systems once someone complains.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/bfin/dv-eth_phy.c')
-rw-r--r-- | sim/bfin/dv-eth_phy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/bfin/dv-eth_phy.c b/sim/bfin/dv-eth_phy.c index f7d7172..e42b213 100644 --- a/sim/bfin/dv-eth_phy.c +++ b/sim/bfin/dv-eth_phy.c @@ -23,11 +23,10 @@ #include "sim-main.h" #include "devices.h" -#ifdef HAVE_LINUX_MII_H +#if defined (HAVE_LINUX_MII_H) && defined (HAVE_LINUX_TYPES_H) /* Workaround old/broken linux headers. */ -#define _LINUX_TYPES_H -#define __u16 unsigned short +#include <linux/types.h> #include <linux/mii.h> #define REG_PHY_SIZE 0x20 |