summaryrefslogtreecommitdiff
path: root/chat/bitchx/patches
diff options
context:
space:
mode:
authorseanb <seanb@pkgsrc.org>2013-12-06 15:35:53 +0000
committerseanb <seanb@pkgsrc.org>2013-12-06 15:35:53 +0000
commit9c27e4d422974ff77bcfa3183235b2c5980e1ffc (patch)
tree1cb6cc042ac3565739a67e0ed6832d2b4f53a00e /chat/bitchx/patches
parent09ccd7f7244855b3e8d8c54abc8ed562de47909c (diff)
downloadpkgsrc-9c27e4d422974ff77bcfa3183235b2c5980e1ffc.tar.gz
Fix for later gcc against platforms without stpcpy().
Diffstat (limited to 'chat/bitchx/patches')
-rw-r--r--chat/bitchx/patches/patch-include_irc__std.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chat/bitchx/patches/patch-include_irc__std.h b/chat/bitchx/patches/patch-include_irc__std.h
new file mode 100644
index 00000000000..a3463d68e76
--- /dev/null
+++ b/chat/bitchx/patches/patch-include_irc__std.h
@@ -0,0 +1,18 @@
+$NetBSD: patch-include_irc__std.h,v 1.1 2013/12/06 15:35:53 seanb Exp $
+
+Later gcc have a string optimization pass at -O2 which
+will swap combinations strcat to stpcpy if it sees a
+stpcpy prototype. This leads to undefined references
+if it's not actually present.
+
+--- include/irc_std.h.orig 2003-04-11 01:09:07.000000000 +0000
++++ include/irc_std.h
+@@ -190,7 +190,7 @@ extern char *sys_errlist[];
+ extern int gettimeofday(struct timeval *tv, struct timezone *tz);
+ #endif
+
+-#ifndef STPCPY_DECLARED
++#if defined(HAVE_STPCPY) && !defined(STPCPY_DECLARED)
+ char * stpcpy (char *to, const char *from);
+ #endif
+