Makefile: just use OpenBSD #ifdef for pledge(2) - tscrape - twitter scraper
(HTM) git clone git://git.codemadness.org/tscrape
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 24fad792de3bab17f1cf485450435761fb3b8657
(DIR) parent e9035ce73e795646108130d6f0e3e4f3be30e46a
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 17 Dec 2018 18:23:35 +0100
Makefile: just use OpenBSD #ifdef for pledge(2)
Diffstat:
M config.mk | 3 ---
M util.h | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
---
(DIR) diff --git a/config.mk b/config.mk
@@ -22,6 +22,3 @@ LDFLAGS = -s
#LDFLAGS = -static -s
CPPFLAGS = -D_DEFAULT_SOURCE
-
-# OpenBSD 5.9+: use pledge(2)
-#CPPFLAGS += -DUSE_PLEDGE
(DIR) diff --git a/util.h b/util.h
@@ -1,6 +1,6 @@
#include <stdint.h>
#include <time.h>
-#ifdef USE_PLEDGE
+#ifdef __OpenBSD__
#include <unistd.h>
#else
#define pledge(p1,p2) 0