diff options
author | nia <nia@pkgsrc.org> | 2019-09-16 17:22:24 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-09-16 17:22:24 +0000 |
commit | ba79c64386a8b324169f1423775f52345308ed4d (patch) | |
tree | ce8906de5ebabee90c9683020effcf4fd09624ed /www | |
parent | addef60f45389600f2f613a11a63a310788374dd (diff) | |
download | pkgsrc-ba79c64386a8b324169f1423775f52345308ed4d.tar.gz |
snownews: patch in includes for missing functions on some linux versions
reported by ottavio on freenode
Diffstat (limited to 'www')
-rw-r--r-- | www/snownews/distinfo | 3 | ||||
-rw-r--r-- | www/snownews/patches/patch-config.h.in | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/www/snownews/distinfo b/www/snownews/distinfo index 0ab922eaacd..579b35f4403 100644 --- a/www/snownews/distinfo +++ b/www/snownews/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.16 2019/09/16 11:42:50 nia Exp $ +$NetBSD: distinfo,v 1.17 2019/09/16 17:22:24 nia Exp $ SHA1 (snownews-1.6.10.tar.gz) = 4eda949103a92ea28e5ceff8e25e45b00540adaa RMD160 (snownews-1.6.10.tar.gz) = 23b6c18ed8f47381e4fb0886074a9516dae0abcd SHA512 (snownews-1.6.10.tar.gz) = df90c3c55da8d11b2936075aab86f66f54f9a6ace0cbe0db54d0e6177ae71e28ab3c700d79b521d55859bb94ef7ecc89e3eb69f215eb9f7286d30cc4e2bec078 Size (snownews-1.6.10.tar.gz) = 189715 bytes SHA1 (patch-Config.mk.in) = 272f80ba5bf0ff6eb89bd30d429835423f45a39d +SHA1 (patch-config.h.in) = 631577ad722fc6ccb1bc945da4e5cc6b259be85e SHA1 (patch-configure) = 789dc192a07fab442080e71d929fa17718fb2390 SHA1 (patch-os-support_c) = 9b843d381c3793bd2f32f72696640a6b005f8a22 diff --git a/www/snownews/patches/patch-config.h.in b/www/snownews/patches/patch-config.h.in new file mode 100644 index 00000000000..9848939d24f --- /dev/null +++ b/www/snownews/patches/patch-config.h.in @@ -0,0 +1,22 @@ +$NetBSD: patch-config.h.in,v 1.1 2019/09/16 17:22:24 nia Exp $ + +Linux (with glibc at least) needs strings.h for strcasecmp and +_GNU_SOURCE for strdup. + +--- config.h.in.orig 2018-07-30 11:06:03.000000000 +0000 ++++ config.h.in +@@ -41,11 +41,14 @@ + // Define on SunOS and Solaris + #undef SUN + ++#define _GNU_SOURCE ++ + #include <sys/types.h> + #include <stdbool.h> + #include <stdint.h> + #include <stdlib.h> + #include <string.h> ++#include <strings.h> + #include <limits.h> + #include <assert.h> + #include <stdio.h> |