summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-01-23 12:27:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-01-23 12:27:58 +0000
commita3d5bfcecec49bf197157bae4bee520e613c2efc (patch)
tree9515be36c8afabaaf70cfffe6e77915720cde44b /compat.h
parent1ebe79dd628f009108c3d6dbdbfbfc69b7a6933d (diff)
Define away pledge() on !OpenBSD.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index e1e11ec6..94c0c71e 100644
--- a/compat.h
+++ b/compat.h
@@ -58,6 +58,10 @@ typedef uint64_t u_int64_t;
#define _PATH_DEV "/dev/"
#endif
+#ifndef __OpenBSD__
+#define pledge(s, p) (0)
+#endif
+
#ifdef HAVE_QUEUE_H
#include <sys/queue.h>
#else