aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/dv-eth_phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/bfin/dv-eth_phy.c')
-rw-r--r--sim/bfin/dv-eth_phy.c5
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