From 38ba00af8024540ede8969fb84a56945d4e675b8 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Mon, 18 Aug 2008 17:18:05 +0000 Subject: Moving weechat to the index. git-svn-id: http://svn.telesphoreo.org/trunk@423 514c082c-b64e-11dc-b46d-3d985efe055d --- data/weechat/strndup.diff | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 data/weechat/strndup.diff (limited to 'data/weechat/strndup.diff') diff --git a/data/weechat/strndup.diff b/data/weechat/strndup.diff new file mode 100644 index 000000000..a472caf53 --- /dev/null +++ b/data/weechat/strndup.diff @@ -0,0 +1,33 @@ +diff -ru weechat-0.2.6/src/common/util.c weechat-0.2.6+iPhone/src/common/util.c +--- weechat-0.2.6/src/common/util.c 2007-08-31 13:24:45.000000000 +0000 ++++ weechat-0.2.6+iPhone/src/common/util.c 2008-07-31 03:29:17.000000000 +0000 +@@ -43,6 +43,7 @@ + + #include "weechat.h" + #include "utf8.h" ++#include "util.h" + #include "weeconfig.h" + + +@@ -52,7 +53,7 @@ + + #ifndef HAVE_STRNDUP + char * +-strndup (char *string, int length) ++strndup (const char *string, size_t length) + { + char *result; + +diff -ru weechat-0.2.6/src/common/util.h weechat-0.2.6+iPhone/src/common/util.h +--- weechat-0.2.6/src/common/util.h 2007-07-11 11:21:02.000000000 +0000 ++++ weechat-0.2.6+iPhone/src/common/util.h 2008-07-31 03:28:59.000000000 +0000 +@@ -21,7 +21,8 @@ + #define __WEECHAT_UTIL_H 1 + + #ifndef HAVE_STRNDUP +-extern char *strndup (char *, int); ++#undef strndup ++extern char *strndup (const char *, size_t); + #endif + extern void ascii_tolower (char *); + extern void ascii_toupper (char *); -- cgit v1.2.3