lib/ccan/failtest: compile fix for OpenBSD
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Mar 2012 00:50:06 +0000 (11:20 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Mar 2012 00:57:37 +0000 (01:57 +0100)
commitb3a6ffd7b269f7a34334d24b54591c225da773a5
tree11ee5b831e28a9460d19a4045560ad307c145f1d
parent675593221c25dbebaaf8e4ce9f4271a8fb0171d0
lib/ccan/failtest: compile fix for OpenBSD

OpenBSD doesn't idempotent-wrap sys/mman.h, so when we #define mmap to
an alternative, it fails to compile when sys/mman.h is included again.

Workaround is not to #define mmap to add arguments on Open BSD.

(Imported from CCAN commit e18e80fe175422d26efe689addc0f67bdba0e097)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ccan/failtest/failtest.c
lib/ccan/failtest/failtest_override.h
lib/ccan/failtest/failtest_proto.h