summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-05-03 14:43:21 +0200
committerAndreas Schneider <asn@samba.org>2016-05-03 15:36:06 +0200
commit09f3be725259c8ea9f51c84a96c4c03459ba72aa (patch)
tree439bc3c02276be40d7cc8a36b96b48fb3714fe26 /src
parentfeb9ee05b08eebbac21bab8ad9dd00beb96d4981 (diff)
downloadsocket_wrapper-09f3be725259c8ea9f51c84a96c4c03459ba72aa.tar.gz
socket_wrapper-09f3be725259c8ea9f51c84a96c4c03459ba72aa.tar.xz
socket_wrapper-09f3be725259c8ea9f51c84a96c4c03459ba72aa.zip
swrap: Add support for running on OpenBSD
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c10
1 files changed, 10 insertions, 0 deletions
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
***************************/