summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Jaroszyński <peper@gentoo.org>2007-06-17 12:32:32 +0000
committerPiotr Jaroszyński <peper@gentoo.org>2007-06-17 12:32:32 +0000
commitf95f566cf9bb136d5012ff2a9f2235041ccf0b74 (patch)
treeb64af69ea5981c04bd812fe5268e75a088a0da4a /app-pda/libopensync/files
parentalpha stable wrt #182256 (diff)
downloadgentoo-2-f95f566cf9bb136d5012ff2a9f2235041ccf0b74.tar.gz
gentoo-2-f95f566cf9bb136d5012ff2a9f2235041ccf0b74.tar.bz2
gentoo-2-f95f566cf9bb136d5012ff2a9f2235041ccf0b74.zip
Fix for fbsd. Thanks to Toffanin Mauro <equilibrium@gechi.it> in bug #182314.
(Portage version: 2.1.3_rc3)
Diffstat (limited to 'app-pda/libopensync/files')
-rw-r--r--app-pda/libopensync/files/libopensync-0.22-fbsd.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-pda/libopensync/files/libopensync-0.22-fbsd.patch b/app-pda/libopensync/files/libopensync-0.22-fbsd.patch
new file mode 100644
index 000000000000..c9e7cdc9a8e2
--- /dev/null
+++ b/app-pda/libopensync/files/libopensync-0.22-fbsd.patch
@@ -0,0 +1,20 @@
+--- libopensync-0.22/formats/vformats-xml/vformat.c 2007-06-17 10:54:54 +0000
++++ libopensync-0.22/formats/vformats-xml/vformat.c 2007-06-17 10:55:30 +0000
+@@ -236,7 +236,7 @@
+ if (charset) {
+
+ cd = iconv_open("UTF-8", charset->str);
+-#ifdef SOLARIS
++#if defined(SOLARIS) || defined(__FreeBSD__) || defined(__NetBSD__)
+ if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+ #else
+ if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+@@ -264,7 +264,7 @@
+
+ /* because inbuf is not UTF-8, we think it is ISO-8859-1 */
+ cd = iconv_open("UTF-8", "ISO-8859-1");
+-#ifdef SOLARIS
++#if defined(SOLARIS) || defined(__FreeBSD__) || defined(__NetBSD__)
+ if (iconv(cd, (const char**)&inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {
+ #else
+ if (iconv(cd, &inbuf, &inbytesleft, &p, &outbytesleft) != (size_t)(-1)) {