config.h: disable pledge for non-OpenBSD - bmf - bmf (Bayesian Mail Filter) 0.9.4 fork + patches
(HTM) git clone git://git.codemadness.org/bmf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1e2885e37b75f738445d13b6a61caf9786b28fea
(DIR) parent c8fb28f55c568c95be709803ef153199f1557035
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 23 Sep 2018 14:39:59 +0200
config.h: disable pledge for non-OpenBSD
Diffstat:
M config.h | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/config.h b/config.h
@@ -30,6 +30,11 @@
#include <time.h>
#include <unistd.h>
+/* pledge(2) */
+#ifndef __OpenBSD__
+#define pledge(a,b) 0
+#endif
+
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>