Don't check memory permissions with write on OS X

write returns errno 45 (Operation not supported) when used with
a file descriptor obtained via shm_open on OS X.
1 file changed