VirtualBox

Changeset 40651 in vbox for trunk/src/VBox/RDP/client


Ignore:
Timestamp:
Mar 26, 2012 4:29:58 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/r3/posix, RDP/client: Solaris 11 iconv change. Avoid referencing xpg5_iconv symbol by circumventing pragma redefine_extname.

Location:
trunk/src/VBox/RDP/client
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client/Makefile.kmk

    r39871 r40651  
    6161# define __USE_LEGACY_PROTOTYPES__ until our buildbox is updated sufficiently
    6262rdesktop-vrdp_DEFS.solaris = \
    63         HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \
     63        HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \
    6464        DIR_FD_MEMBER_NAME=dd_fd __USE_LEGACY_PROTOTYPES__ HAVE_SYS_VFS_H=1 HAVE_SYS_STATFS_H=1
     65ifdef VBOX_SOLARIS_11_LEGACY_ICONV
     66 rdesktop-vrdp_DEFS.solaris += VBOX_SOLARIS_11_LEGACY_ICONV ICONV_CONST=const
     67else
     68 rdesktop-vrdp_DEFS.solaris += ICONV_CONST=
     69endif
    6570rdesktop-vrdp_DEFS.freebsd = \
    6671        RDPSND_OSS=1 HAVE_ICONV_H=1 ICONV_CONST=const HAVE_SYS_STATVFS_H=1 _FILE_OFFSET_BITS=64 HAVE_DIRFD=1
  • trunk/src/VBox/RDP/client/rdp.c

    r37224 r40651  
    3838#ifdef HAVE_ICONV
    3939#ifdef HAVE_ICONV_H
     40
     41#if defined(RT_OS_SOLARIS) && !defined(_XPG6)
     42# define VBOX_XPG6_TMP_DEF
     43# define _XPG6
     44#endif
     45#if defined(RT_OS_SOLARIS) && defined(__USE_LEGACY_PROTOTYPES__)
     46# define VBOX_LEGACY_PROTO_TMP_DEF
     47# undef __USE_LEGACY_PROTOTYPES__
     48#endif
    4049#include <iconv.h>
     50#if defined(VBOX_XPG6_TMP_DEF)
     51# undef _XPG6
     52# undef VBOX_XPG6_TMP_DEF
     53#endif
     54#if defined(VBOX_LEGACY_PROTO_TMP_DEF)
     55# define  __USE_LEGACY_PROTOTYPES__
     56# undef VBOX_LEGACY_PROTO_TMP_DEF
    4157#endif
    4258
    4359#ifndef ICONV_CONST
    4460#define ICONV_CONST ""
     61#endif
    4562#endif
    4663#endif
  • trunk/src/VBox/RDP/client/xclip.c

    r37224 r40651  
    4646#ifdef HAVE_ICONV_H
    4747#include <langinfo.h>
     48
     49#if defined(RT_OS_SOLARIS) && !defined(_XPG6)
     50# define VBOX_XPG6_TMP_DEF
     51# define _XPG6
     52#endif
     53#if defined(RT_OS_SOLARIS) && defined(__USE_LEGACY_PROTOTYPES__)
     54# define VBOX_LEGACY_PROTO_TMP_DEF
     55# undef __USE_LEGACY_PROTOTYPES__
     56# endif
    4857#include <iconv.h>
     58#if defined(VBOX_XPG6_TMP_DEF)
     59# undef _XPG6
     60# undef VBOX_XPG6_TMP_DEF
     61#endif
     62#if defined(VBOX_LEGACY_PROTO_TMP_DEF)
     63# define  __USE_LEGACY_PROTOTYPES__
     64# undef VBOX_LEGACY_PROTO_TMP_DEF
     65#endif
     66
    4967#define USE_UNICODE_CLIPBOARD
    5068#endif
Note: See TracChangeset for help on using the changeset viewer.

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