diff options
Diffstat (limited to 'emulators/qemu/patches/patch-hw_xilinx__axienet.c')
-rw-r--r-- | emulators/qemu/patches/patch-hw_xilinx__axienet.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/qemu/patches/patch-hw_xilinx__axienet.c b/emulators/qemu/patches/patch-hw_xilinx__axienet.c new file mode 100644 index 00000000000..72002a37e4b --- /dev/null +++ b/emulators/qemu/patches/patch-hw_xilinx__axienet.c @@ -0,0 +1,15 @@ +$NetBSD: patch-hw_xilinx__axienet.c,v 1.1 2011/08/22 12:00:34 ryoon Exp $ + +Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h> + +--- hw/xilinx_axienet.c.orig 2011-08-08 18:28:42 +0000 ++++ hw/xilinx_axienet.c +@@ -189,7 +189,7 @@ static uint16_t mdio_read_req(struct MDI + + phy = bus->devs[addr]; + if (phy && phy->read) { +- data = phy->read(phy, reg); ++ data = (*phy->read)(phy, reg); + } else { + data = 0xffff; + } |