blob: 59a87acf55229d11aef320eb87122b9f1d1bd7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ei,v 1.2 2011/07/11 09:57:18 ryoon Exp $
Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h>
(PR lib/43832: ssp causes common names to be defines)
--- rwhandler.c.orig 2011-05-06 19:01:44.000000000 +0000
+++ rwhandler.c
@@ -13,7 +13,7 @@ static void name(void *opaque, type addr
static uint32_t name(void *opaque, type addr) \
{ \
struct ReadWriteHandler *handler = opaque; \
- return handler->read(handler, addr, len); \
+ return (*handler->read)(handler, addr, len); \
}
RWHANDLER_WRITE(cpu_io_memory_simple_writeb, 1, target_phys_addr_t);
|