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}"