summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2015-11-30 07:23:53 +1100
committerDarren Tucker <dtucker@zip.com.au>2015-11-30 07:23:53 +1100
commit3ddd15e1b63a4d4f06c8ab16fbdd8a5a61764f16 (patch)
tree4fbce3d8671872f8e1cd91230a73af14e288a28f /openbsd-compat/bsd-misc.c
parentb1d6b3971ef256a08692efc409fc9ada719111cc (diff)
Add a null implementation of pledge.
Fixes builds on almost everything.
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index f7be415e..2a788e47 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -276,3 +276,11 @@ getpgid(pid_t pid)
return -1;
}
#endif
+
+#ifndef HAVE_PLEDGE
+int
+pledge(const char *promises, const char *paths[])
+{
+ return 0;
+}
+#endif