commit 966d9dfe0a7963912edabbc2094f2e29e32e5d79
parent 9cc58383171e2f5bb636db468a787484d2243af5
Author: Frederic Cambus <fred@statdns.com>
Date: Wed, 20 Jan 2016 16:56:44 +0100
Conditional include for 'pledge' + adding some required headers
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -14,6 +14,12 @@
#include <string.h>
#include <stdbool.h>
#include <getopt.h>
+#include <unistd.h>
+#include <err.h>
+
+#ifndef HAVE_PLEDGE
+#include "pledge.h"
+#endif
#ifndef HAVE_STRTONUM
#include "strtonum.h"