See patch.
>From 5837eaeaa8bc310c049c4f796868ac6fdd38ba24 Mon Sep 17 00:00:00 2001
From: Pascal Stumpf <pascal.stu...@cubes.de>
Date: Sun, 19 Aug 2012 18:19:40 +0200
Subject: [PATCH] OpenBSD still uses GNU iconv, so the second argument to
 iconv(3) is not const.

---
 cde/programs/dtmail/libDtMail/Common/Session.C  |    2 +-
 cde/programs/dtmail/libDtMail/RFC/RFCBodyPart.C |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cde/programs/dtmail/libDtMail/Common/Session.C 
b/cde/programs/dtmail/libDtMail/Common/Session.C
index 0c664cc..5ad49d0 100644
--- a/cde/programs/dtmail/libDtMail/Common/Session.C
+++ b/cde/programs/dtmail/libDtMail/Common/Session.C
@@ -1618,7 +1618,7 @@ char *from_cs, char *to_cs)
    DtMailEnv error;
    iconv_t cd;
    size_t ileft = (size_t) bp_len, oleft = (size_t) bp_len, ret = 0;
-#if defined(_AIX) || defined(sun) | defined(CSRG_BASED)
+#if defined(_AIX) || defined(sun) || defined(__FreeBSD__)
    const char *ip = (const char *) *bp;
 #else
    char *ip = *bp;
diff --git a/cde/programs/dtmail/libDtMail/RFC/RFCBodyPart.C 
b/cde/programs/dtmail/libDtMail/RFC/RFCBodyPart.C
index 172b844..0651149 100644
--- a/cde/programs/dtmail/libDtMail/RFC/RFCBodyPart.C
+++ b/cde/programs/dtmail/libDtMail/RFC/RFCBodyPart.C
@@ -1030,7 +1030,7 @@ char *from_cs, char *to_cs)
    DtMailEnv error;
    iconv_t cd;
    size_t ileft = (size_t) bp_len, oleft = (size_t) bp_len, ret = 0;
-#if defined(_aix) || defined(sun) || defined(CSRG_BASED)
+#if defined(_aix) || defined(sun) || defined(__FreeBSD__)
    const char *ip = (const char *) *bp;
 #else
    char *ip = *bp;
-- 
1.7.6

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to