VirtualBox

Changeset 68578 in vbox


Ignore:
Timestamp:
Aug 31, 2017 12:11:03 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117795
Message:

merging vbglioc r117756: utf8-posix.cpp build fix for FreeBSD 10.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/utf8-posix.cpp

    r62946 r68578  
    7474# include "internal/thread.h"
    7575AssertCompile(sizeof(iconv_t) <= sizeof(void *));
     76#endif
     77
     78
     79/* There are different opinions about the constness of the input buffer. */
     80#if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) \
     81  || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE))
     82# define NON_CONST_ICONV_INPUT
     83#endif
     84#ifdef RT_OS_FREEBSD
     85# include <sys/param.h>
     86# if __FreeBSD_version >= 1002000 /* Changed around 10.2.2 (https://svnweb.freebsd.org/base?view=revision&revision=281550) */
     87#  define NON_CONST_ICONV_INPUT
     88# else
     89# error __FreeBSD_version__
     90# endif
    7691#endif
    7792
     
    195210            void       *pvOutputLeft = pvOutput;
    196211            size_t      cchNonRev;
    197 #if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) /* there are different opinions about the constness of the input buffer. */
     212#ifdef NON_CONST_ICONV_INPUT
    198213            cchNonRev = iconv(hIconv, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
    199214#else
     
    325340            void       *pvOutputLeft = pvOutput;
    326341            size_t      cchNonRev;
    327 #if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) /* there are different opinions about the constness of the input buffer. */
     342#ifdef NON_CONST_ICONV_INPUT
    328343            cchNonRev = iconv(icHandle, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
    329344#else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette