From b3a6ffd7b269f7a34334d24b54591c225da773a5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 21 Mar 2012 11:20:06 +1030 Subject: 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 --- lib/ccan/failtest/failtest_proto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ccan/failtest/failtest_proto.h') diff --git a/lib/ccan/failtest/failtest_proto.h b/lib/ccan/failtest/failtest_proto.h index c7e6b48984..3c2df1d31d 100644 --- a/lib/ccan/failtest/failtest_proto.h +++ b/lib/ccan/failtest/failtest_proto.h @@ -23,6 +23,8 @@ ssize_t failtest_pwrite(int fd, const void *buf, size_t count, off_t offset, const char *file, unsigned line); void *failtest_mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset, const char *file, unsigned line); +void *failtest_mmap_noloc(void *addr, size_t length, int prot, int flags, + int fd, off_t offset); off_t failtest_lseek(int fd, off_t offset, int whence, const char *file, unsigned line); int failtest_close(int fd, const char *file, unsigned line); -- cgit