From 2d1bfd8b74fdd6d6b44f4308c84098eb8d81f5d6 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Fri, 23 Dec 2022 22:53:48 +0000 Subject: [PATCH] Define _POSIX_C_SOURCE again. --- src/Telodendria.c | 8 ++++++++ tools/bin/td | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Telodendria.c b/src/Telodendria.c index a8ade89..c6ebd1c 100644 --- a/src/Telodendria.c +++ b/src/Telodendria.c @@ -41,6 +41,14 @@ #include #include +#ifdef __OpenBSD__ +extern int +pledge(const char *, const char *); + +extern int +unveil(const char *, const char *); +#endif + static void TelodendriaMemoryHook(MemoryAction a, MemoryInfo * i, void *args) { diff --git a/tools/bin/td b/tools/bin/td index 43cd83d..1b0a254 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -22,7 +22,7 @@ : "${TELODENDRIA_VERSION:=0.2.0}" : "${CVS_TAG:=Telodendria-$(echo $TELODENDRIA_VERSION | sed 's/\./_/g')}" -: "${DEFINES:=-D_DEFAULT_SOURCE -DTELODENDRIA_VERSION=\"$TELODENDRIA_VERSION\"}" +: "${DEFINES:=-D_POSIX_C_SOURCE=200809L -DTELODENDRIA_VERSION=\"$TELODENDRIA_VERSION\"}" : "${INCLUDES:=-Isrc/include}" : "${CC:=cc}"