diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-11-30 07:23:53 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-11-30 07:23:53 +1100 |
commit | 3ddd15e1b63a4d4f06c8ab16fbdd8a5a61764f16 (patch) | |
tree | 4fbce3d8671872f8e1cd91230a73af14e288a28f /openbsd-compat/bsd-misc.h | |
parent | b1d6b3971ef256a08692efc409fc9ada719111cc (diff) |
Add a null implementation of pledge.
Fixes builds on almost everything.
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index ff347a24..0d81d173 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 */ |