From d7f9be0f8541368bf1a095ad1fbe7f38be6d3d15 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 11 Nov 2013 15:48:41 -0800 Subject: Proper spelling of MAP_ANONYMOUS is MAP_ANON. The former doesn't exist on BSD and the latter is available everywhere AFAIK (checked Solaris and Linux). You also might want to wrap that line ;). Reported-by: Mark Kettenis Signed-off-by: Keith Packard --- os/busfault.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os') diff --git a/os/busfault.c b/os/busfault.c index 78e7693e3..43bb6ea8a 100644 --- a/os/busfault.c +++ b/os/busfault.c @@ -121,7 +121,8 @@ busfault_sigaction(int sig, siginfo_t *info, void *param) * /dev/zero over that area and keep going */ - new_addr = mmap(busfault->addr, busfault->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE|MAP_FIXED, -1, 0); + new_addr = mmap(busfault->addr, busfault->size, PROT_READ|PROT_WRITE, + MAP_ANON|MAP_PRIVATE|MAP_FIXED, -1, 0); if (new_addr == MAP_FAILED) goto panic; -- cgit v1.2.3