summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-11 15:48:41 -0800
committerKeith Packard <keithp@keithp.com>2013-11-11 15:48:41 -0800
commitd7f9be0f8541368bf1a095ad1fbe7f38be6d3d15 (patch)
tree61d39e291afcc028b1e0cdcd4518a73b47872273 /os
parentfc84166e65c35ad75f566b135dcfc305ad5a2fde (diff)
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 <mark.kettenis@xs4all.nl> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os')
-rw-r--r--os/busfault.c3
1 files changed, 2 insertions, 1 deletions
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;