summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2015-10-18 00:29:55 +0000
committerdholland <dholland@pkgsrc.org>2015-10-18 00:29:55 +0000
commit3db10e0f912a1cdcfa860cc7feb2bfe9f29f9a90 (patch)
tree368a3df599401a1f1210bb71c800f2be8685394a /editors
parent21944ec7af83a68d413307fda99fe1f535f74007 (diff)
downloadpkgsrc-3db10e0f912a1cdcfa860cc7feb2bfe9f29f9a90.tar.gz
Fix build with HAVE_ICONV not set, needed on OpenBSD.
Diffstat (limited to 'editors')
-rw-r--r--editors/biew/distinfo3
-rw-r--r--editors/biew/patches/patch-biewlib_sysdep_generic_unix_vio.c39
2 files changed, 41 insertions, 1 deletions
diff --git a/editors/biew/distinfo b/editors/biew/distinfo
index 3f995e9acc7..47915fc3754 100644
--- a/editors/biew/distinfo
+++ b/editors/biew/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.10 2015/02/19 22:25:54 joerg Exp $
+$NetBSD: distinfo,v 1.11 2015/10/18 00:29:55 dholland Exp $
SHA1 (biew-610-src.tar.bz2) = 332b45580cdee134ee42c48bec652fcba96cd99a
RMD160 (biew-610-src.tar.bz2) = c728c8e165c2e16edcc4c25ddef063379b32049d
Size (biew-610-src.tar.bz2) = 860517 bytes
SHA1 (patch-aa) = 01be55a0850bce93bddea0a01de5e79d088ffe1f
SHA1 (patch-biewlib_sysdep_generic_____config.h) = 054b3384ad1e7fc963ab19ad928cde35c2c18226
+SHA1 (patch-biewlib_sysdep_generic_unix_vio.c) = 7439587f4c72846c074533e93169f9f937d53940
SHA1 (patch-biewlib_sysdep_x86__64_aclib__template.c) = aa7f33ab453a1b742a8ea6c6209b66d76f758154
SHA1 (patch-configure) = 89f8b10c4360e96c1e067ab0f386bce97428a73d
diff --git a/editors/biew/patches/patch-biewlib_sysdep_generic_unix_vio.c b/editors/biew/patches/patch-biewlib_sysdep_generic_unix_vio.c
new file mode 100644
index 00000000000..769b8fdb1ef
--- /dev/null
+++ b/editors/biew/patches/patch-biewlib_sysdep_generic_unix_vio.c
@@ -0,0 +1,39 @@
+$NetBSD: patch-biewlib_sysdep_generic_unix_vio.c,v 1.1 2015/10/18 00:29:55 dholland Exp $
+
+Fix build with HAVE_ICONV not set, needed on OpenBSD.
+
+--- biewlib/sysdep/generic/unix/vio.c~ 2009-09-20 14:39:37.000000000 +0000
++++ biewlib/sysdep/generic/unix/vio.c
+@@ -190,6 +190,8 @@ chtype __FASTCALL__ _2ps(unsigned char c
+ static char *screen_cp;
+ static unsigned is_unicode=0;
+ static void *nls_handle;
++#else
++#define is_unicode 0
+ #endif
+
+ #ifdef _VT100_
+@@ -437,11 +439,13 @@ void __FASTCALL__ __vioWriteBuff(tAbsCoo
+ *dpb=c; dpb++;
+ }
+ else {
++#ifdef HAVE_ICONV
+ unsigned len=1;
+ char *destb=nls_recode2screen_cp(nls_handle,&c,&len);
+ memcpy(dpb,destb,len);
+ free(destb);
+ dpb+=len;
++#endif
+ }
+ #endif
+ }
+@@ -586,7 +590,9 @@ void __FASTCALL__ __term_vio(void)
+ free(vtmp);
+ #endif
+ free(viomem);
++#ifdef HAVE_ICONV
+ nls_term(nls_handle);
++#endif
+ initialized = 0;
+ }
+