diff options
author | wiedi <wiedi@pkgsrc.org> | 2022-10-30 21:58:29 +0000 |
---|---|---|
committer | wiedi <wiedi@pkgsrc.org> | 2022-10-30 21:58:29 +0000 |
commit | 71e758fd1395d04f3bf2edf8658fed115d28accc (patch) | |
tree | 73dde6017bc4b1cdefad02d331cc1b1f21c00192 /www/goaccess/patches | |
parent | 9554d2a6beb810805db847b5ceb33fc92de9e587 (diff) | |
download | pkgsrc-71e758fd1395d04f3bf2edf8658fed115d28accc.tar.gz |
goaccess: add patches to fix netbsd and illumos
Diffstat (limited to 'www/goaccess/patches')
-rw-r--r-- | www/goaccess/patches/patch-src_parser.c | 15 | ||||
-rw-r--r-- | www/goaccess/patches/patch-src_util.c | 18 |
2 files changed, 33 insertions, 0 deletions
diff --git a/www/goaccess/patches/patch-src_parser.c b/www/goaccess/patches/patch-src_parser.c new file mode 100644 index 00000000000..39c3931d72a --- /dev/null +++ b/www/goaccess/patches/patch-src_parser.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_parser.c,v 1.3 2022/10/30 21:58:30 wiedi Exp $ + +Fixes build on netbsd + +--- src/parser.c.orig 2022-09-29 20:27:15.000000000 +0000 ++++ src/parser.c +@@ -1360,7 +1360,7 @@ find_xff_host (GLogItem * logitem, char + /* if the log format current char is not within the braces special chars, then + * we assume the range of IPs are within hard delimiters */ + if (!strchr (skips, **p) && strchr (*str, **p)) { +- strcpy (pch, (char[2]) { (char) **p, '\0' }); ++ strcpy (pch, ((char[2]) { (char) **p, '\0' })); + if (!(extract = parse_string (&(*str), pch, 1))) + goto clean; + diff --git a/www/goaccess/patches/patch-src_util.c b/www/goaccess/patches/patch-src_util.c new file mode 100644 index 00000000000..d88cb224d94 --- /dev/null +++ b/www/goaccess/patches/patch-src_util.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_util.c,v 1.1 2022/10/30 21:58:30 wiedi Exp $ + +No tm_gmtoff on SunOS + +--- src/util.c.orig 2022-09-29 15:15:53.000000000 +0000 ++++ src/util.c +@@ -568,7 +568,11 @@ tm2time (const struct tm *src) { + struct tm tmp; + + tmp = *src; ++#if defined(__sun) ++ return timegm (&tmp); ++#else + return timegm (&tmp) - src->tm_gmtoff; ++#endif + } + + void |