From 94f9b2213ab1fb3db8a91d477f3a70847bbedb15 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 5 Oct 2018 11:48:17 +0200 Subject: Makefile: just use OpenBSD #ifdef for pledge(2) --- config.mk | 3 --- util.h | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config.mk b/config.mk index b8fb9b7..79af98d 100644 --- a/config.mk +++ b/config.mk @@ -22,6 +22,3 @@ LDFLAGS = -s #LDFLAGS = -static -s CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE - -# OpenBSD 5.9+: use pledge(2) -#CPPFLAGS += -DUSE_PLEDGE diff --git a/util.h b/util.h index 4542e4e..bb34a08 100644 --- a/util.h +++ b/util.h @@ -1,6 +1,7 @@ #include #include -#ifdef USE_PLEDGE + +#ifdef __OpenBSD__ #include #else #define pledge(p1,p2) 0 -- cgit v1.2.3