failtest: compile fix for OpenBSD
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Mar 2012 00:48:18 +0000 (11:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Mar 2012 00:48:18 +0000 (11:18 +1030)
commite18e80fe175422d26efe689addc0f67bdba0e097
tree5103af503ee40547c745691d2111ea33a9148bed
parent3ea7b4d695237414015f33674d6ba01009e77fd1
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.
ccan/failtest/failtest.c
ccan/failtest/failtest_override.h
ccan/failtest/failtest_proto.h