Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile: just use OpenBSD #ifdef for pledge(2) - tscrape - twitter scraper
git clone git://git.codemadness.org/tscrape
Log
Files
Refs
README
LICENSE
---
commit 24fad792de3bab17f1cf485450435761fb3b8657
parent e9035ce73e795646108130d6f0e3e4f3be30e46a
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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
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
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.