From 3ddd15e1b63a4d4f06c8ab16fbdd8a5a61764f16 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 30 Nov 2015 07:23:53 +1100 Subject: Add a null implementation of pledge. Fixes builds on almost everything. --- openbsd-compat/bsd-misc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsd-compat/bsd-misc.h') diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index ff347a24b..0d81d1735 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h @@ -122,4 +122,8 @@ pid_t getpgid(pid_t); # define krb5_free_error_message(a,b) do { } while(0) #endif +#ifndef HAVE_PLEDGE +int pledge(const char *promises, const char *paths[]); +#endif + #endif /* _BSD_MISC_H */ -- cgit v1.2.3