Fixup fromcvs/togit conversion
[pkgsrcv2.git] / emulators / qemu / patches / patch-hw_xilinx__axienet.c
1 $NetBSD: patch-hw_xilinx__axienet.c,v 1.3 2012/09/11 17:13:45 asau Exp $
2
3 Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h>
4 (PR lib/43832: ssp causes common names to be defines)
5
6 --- hw/xilinx_axienet.c.orig    2013-05-24 13:37:57.000000000 +0000
7 +++ hw/xilinx_axienet.c
8 @@ -188,7 +188,7 @@ static uint16_t mdio_read_req(struct MDI
9  
10      phy = bus->devs[addr];
11      if (phy && phy->read) {
12 -        data = phy->read(phy, reg);
13 +        data = (*phy->read)(phy, reg);
14      } else {
15          data = 0xffff;
16      }