From eeabe93e3f28b2033ce62d37ddf62f6f8450e1a4 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 24 Dec 2022 00:51:49 +0000 Subject: [PATCH] Revert using _POSIX_C_SOURCE. It didn't fix the issue. --- src/Telodendria.c | 8 -------- tools/bin/td | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Telodendria.c b/src/Telodendria.c index c6ebd1c..a8ade89 100644 --- a/src/Telodendria.c +++ b/src/Telodendria.c @@ -41,14 +41,6 @@ #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 1b0a254..43cd83d 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_POSIX_C_SOURCE=200809L -DTELODENDRIA_VERSION=\"$TELODENDRIA_VERSION\"}" +: "${DEFINES:=-D_DEFAULT_SOURCE -DTELODENDRIA_VERSION=\"$TELODENDRIA_VERSION\"}" : "${INCLUDES:=-Isrc/include}" : "${CC:=cc}"