diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-10-05 11:48:17 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-10-05 11:48:17 +0200 |
commit | 94f9b2213ab1fb3db8a91d477f3a70847bbedb15 (patch) | |
tree | bd70647053b461b8d52d3f42ba8bdf269c3bd0e3 | |
parent | 2e0e1fa5d66f01effe07d30e53e5cf558494796f (diff) |
Makefile: just use OpenBSD #ifdef for pledge(2)
-rw-r--r-- | config.mk | 3 | ||||
-rw-r--r-- | util.h | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -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 @@ -1,6 +1,7 @@ #include <stdint.h> #include <time.h> -#ifdef USE_PLEDGE + +#ifdef __OpenBSD__ #include <unistd.h> #else #define pledge(p1,p2) 0 |