diff options
author | wiz <wiz@pkgsrc.org> | 2005-10-13 15:00:13 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-10-13 15:00:13 +0000 |
commit | acb3c363af4ab3dd31c1448b214ba73aa73f5539 (patch) | |
tree | ad68674b285906259b1395241831cb6db4fe1fe3 /comms/synce-libsynce/patches | |
parent | 0f94a13cc2a9e778598387cbc4ff0f9f3b7efbf3 (diff) | |
download | pkgsrc-acb3c363af4ab3dd31c1448b214ba73aa73f5539.tar.gz |
Initial import of synce-libsynce-0.9.1:
Libsynce is part of the SynCE project.
The SynCE library is required to compile (at least) the following
parts of the SynCE project:
o librapi2
o dccmd
Diffstat (limited to 'comms/synce-libsynce/patches')
-rw-r--r-- | comms/synce-libsynce/patches/patch-aa | 39 | ||||
-rw-r--r-- | comms/synce-libsynce/patches/patch-ab | 13 |
2 files changed, 52 insertions, 0 deletions
diff --git a/comms/synce-libsynce/patches/patch-aa b/comms/synce-libsynce/patches/patch-aa new file mode 100644 index 00000000000..87b58c21735 --- /dev/null +++ b/comms/synce-libsynce/patches/patch-aa @@ -0,0 +1,39 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ + +--- lib/wstr.c.orig 2004-01-12 10:33:34.000000000 +0100 ++++ lib/wstr.c +@@ -5,6 +5,7 @@ + #include "synce_config.h" + #include <stdlib.h> + #include <string.h> ++#include <errno.h> + + #if HAVE_LOCALE_H + #include <locale.h> +@@ -35,7 +36,7 @@ + #endif + + +-#define wstr_WIDE "UNICODELITTLE" ++#define wstr_WIDE "ucs-2le" + #define wstr_ASCII "ISO_8859-1" + #define wstr_UTF8 "UTF-8" + +@@ -79,7 +80,7 @@ static char* wstr_to_x(LPCWSTR inbuf, co + cd = iconv_open(code, wstr_WIDE); + if (INVALID_ICONV_HANDLE == cd) + { +- wstr_error("iconv_open failed"); ++ wstr_error("iconv_open(%s, %s) failed: %s", code, wstr_WIDE, strerror(errno)); + return NULL; + } + +@@ -147,7 +148,7 @@ static LPWSTR wstr_from_x(const char* in + cd = iconv_open(wstr_WIDE, code); + if (INVALID_ICONV_HANDLE == cd) + { +- wstr_error("iconv_open failed"); ++ wstr_error("iconv_open(%s, %s) failed: %s", code, wstr_WIDE, strerror(errno)); + return NULL; + } + diff --git a/comms/synce-libsynce/patches/patch-ab b/comms/synce-libsynce/patches/patch-ab new file mode 100644 index 00000000000..f87349440c2 --- /dev/null +++ b/comms/synce-libsynce/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/10/13 15:00:13 wiz Exp $ + +--- lib/synce_hash.c.orig 2003-11-04 11:21:20.000000000 +0100 ++++ lib/synce_hash.c +@@ -59,7 +59,7 @@ unsigned s_str_hash(const void* key) + { + unsigned ret_val = 0; + int i; +- const char *string = (const char*)key; ++ const unsigned char *string = (const unsigned char*)key; + + while (*string) + { |