From 09f3be725259c8ea9f51c84a96c4c03459ba72aa Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 3 May 2016 14:43:21 +0200 Subject: swrap: Add support for running on OpenBSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Schneider Reviewed-by: Ralph Böhme --- src/socket_wrapper.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 3b0499d..f78c896 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -5248,6 +5248,16 @@ int eventfd(int count, int flags) } #endif +#ifdef HAVE_PLEDGE +int pledge(const char *promises, const char *paths[]) +{ + (void)promises; /* unused */ + (void)paths; /* unused */ + + return 0; +} +#endif /* HAVE_PLEDGE */ + /**************************** * DESTRUCTOR ***************************/ -- cgit