pkgsrc-ng/emulators/qemu0/patches/patch-hw_xilinx__axienet.c
2013-09-26 17:14:40 +02:00

16 lines
462 B
C

$NetBSD: patch-hw_xilinx__axienet.c,v 1.1 2012/06/07 21:35:37 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;
}