commit 95482492e08e9a80a7fc351ae98fbd4e12089756
parent 09b800be74cc3a017ed8760d90c9d9fa948df252
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sun, 10 Nov 2024 07:54:41 -0800
Don't try and call pledge if not on OpenBSD
This should allow the program to be compiled on systems other than
OpenBSD.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/pop3.c b/pop3.c
@@ -17,6 +17,10 @@
/* ignore const */
#define const
+#ifndef __OpenBSD__
+#define pledge(A,B) (0)
+#endif /* __OpenBSD__ */
+
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>