1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

OpenBSD still uses GNU iconv, so the second argument to iconv(3) is not const.

This commit is contained in:
Pascal Stumpf 2012-08-19 18:19:40 +02:00 committed by Jon Trulson
parent 232a93319b
commit b578dca486
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;