From a3a400c0f08a6da24bb106ba713ccf61c637875e Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Fri, 24 Apr 2020 18:39:56 +0000 Subject: sysutils/runwhen: Add support for skalibs 2.9.2.1 Five years after its latest release runwhen 2015.02.24 is no longer compatible the latest skalibs version (2.9.2.1 from 16 days ago). The attached patch allows the old runwhen code to build against the latest skalibs version. It converts the enum values in rw-match.c from lower to upper case to avoid a name collision on "div", deals with the renaming of tainnow.lib to to sysclock.lib and replaces a call to the deprecated env_get() function with getenv(). This gets rid of all compiler warnings and errors. PR: 245836 Submitted by: crest@rlwinm.de --- sysutils/runwhen/files/patch-src_rw__scan.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysutils/runwhen/files/patch-src_rw__scan.c (limited to 'sysutils/runwhen/files/patch-src_rw__scan.c') diff --git a/sysutils/runwhen/files/patch-src_rw__scan.c b/sysutils/runwhen/files/patch-src_rw__scan.c new file mode 100644 index 000000000000..77c2342d960b --- /dev/null +++ b/sysutils/runwhen/files/patch-src_rw__scan.c @@ -0,0 +1,11 @@ +--- src/rw_scan.c.orig 2020-04-22 21:45:48 UTC ++++ src/rw_scan.c +@@ -14,7 +14,7 @@ void rw_scan(tain_t* stamp, char const* text) { + char const* x; + switch (text[0]) { + case '$': +- x=env_get(text+1); ++ x=getenv(text+1); + if (x==NULLP) DIE_MALFORMED("timestamp", text); + text=x; + i=tain_scan(text, stamp); -- cgit v1.2.3