VirtualBox

Changeset 11610 in vbox for trunk/src/VBox/RDP


Ignore:
Timestamp:
Aug 25, 2008 1:09:37 PM (16 years ago)
Author:
vboxsync
Message:

RDP/client: Enable building/packaging on solaris. Use vbox openssl lib, since the system openssl library may be incompatible.

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

Legend:

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

    r10139 r11610  
    2828PROGRAMS += rdesktop-vrdp
    2929rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE
    30 # rdesktop-vrdp_SDKS = VBOX_OPENSSL - crap, we don't build everything that's required here. :/
     30rdesktop-vrdp_SDKS = VBOX_OPENSSL
    3131rdesktop-vrdp_DEFS = \
    3232        PACKAGE_NAME=\"rdesktop-vrdp\" PACKAGE_TARNAME=\"rdesktop-vrdp\" PACKAGE_VERSION=\"1.6.0\" \
     
    3434        HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 \
    3535        HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 HAVE_SYS_SELECT_H=1 \
    36         HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 ssldir=\"/usr\" \
     36        HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 \
    3737        EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 HAVE_DIRFD=1 HAVE_DECL_DIRFD=1 \
    3838        HAVE_ICONV=1 ICONV_CONST= HAVE_SYS_VFS_H=1 HAVE_SYS_STATVFS_H=1 HAVE_SYS_STATFS_H=1 \
    39         HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 STAT_STATVFS=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
    40         HAVE_STRUCT_STATFS_F_NAMELEN=1 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 \
     39        HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
    4140        KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox-$(VBOX_VERSION_STRING)\")\"/rdesktop-vrdp-keymaps\" \
    42         RDPSND_OSS=1 WITH_RDPUSB=1 RDESKTOP=1
     41        WITH_RDPUSB=1 RDESKTOP=1
     42
     43rdesktop-vrdp_DEFS.linux = \
     44        HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 STAT_STATVFS=1 HAVE_STRUCT_STATFS_F_NAMELEN=1 \
     45        RDPSND_OSS=1 WITH_RDPUSB=1
    4346ifdef VBOX_WITHOUT_LINUX_COMPILER_H
    44  rdesktop-vrdp_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
     47 rdesktop-vrdp_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
    4548endif
     49# @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1
     50rdesktop-vrdp_DEFS.solaris = \
     51        HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64
     52
    4653rdesktop-vrdp_SOURCES = \
    4754        tcp.c \
     
    7683        rdpsnd_dsp.c \
    7784        rdpsnd_oss.c
    78 rdesktop-vrdp_SOURCES += \
     85# @todo implement usb proxy for Solaris
     86rdesktop-vrdp_SOURCES.linux = \
    7987        vrdp/rdpusb.c \
    8088        vrdp/USBProxyDevice-linux.c
     
    8391        $(VBOX_LIBPATH_X11)
    8492rdesktop-vrdp_LIBS = \
    85         X11 \
    86         crypto
     93        X11
    8794
    8895#
  • trunk/src/VBox/RDP/client/vrdp/USBProxyDevice-linux.c

    r9902 r11610  
    432432    uint32_t uDev;
    433433    int rc = RTStrToUInt32Ex(psz + 1, NULL, 10, &uDev);
    434     if (VBOX_SUCCESS(rc))
     434    if (RT_SUCCESS(rc))
    435435    {
    436436        /* the bus number */
     
    441441        uint32_t uBus;
    442442        rc = RTStrToUInt32Ex(psz + 1, NULL, 10, &uBus);
    443         if (VBOX_SUCCESS(rc))
     443        if (RT_SUCCESS(rc))
    444444        {
    445445            strcpy(psz + 1, "devices");
     
    451451            PRTSTREAM pFile;
    452452            rc = RTStrmOpen(pszDevices, "r", &pFile);
    453             if (VBOX_SUCCESS(rc))
     453            if (RT_SUCCESS(rc))
    454454            {
    455455                char szLine[1024];
    456                 while (VBOX_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine))))
     456                while (RT_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine))))
    457457                {
    458458                    /* we're only interested in 'T:' lines. */
     
    487487                     * Scan until we find a selected configuration, the next device, or EOF.
    488488                     */
    489                     while (VBOX_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine))))
     489                    while (RT_SUCCESS(RTStrmGetLine(pFile, szLine, sizeof(szLine))))
    490490                    {
    491491                        psz = RTStrStripL(szLine);
     
    504504                            psz = RTStrStripL(psz + 5);
    505505                            rc = RTStrToUInt32Ex(psz, &pszNext, 10, &u); AssertRC(rc);
    506                             if (VBOX_SUCCESS(rc))
     506                            if (RT_SUCCESS(rc))
    507507                            {
    508508                                if (piFirstCfg)
     
    556556    RTFILE File;
    557557    int rc = RTFileOpen(&File, pszAddress, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    558     if (VBOX_SUCCESS(rc))
     558    if (RT_SUCCESS(rc))
    559559    {
    560560        /*
     
    566566            pDevLnx->File = File;
    567567            rc = RTCritSectInit(&pDevLnx->CritSect);
    568             if (VBOX_SUCCESS(rc))
     568            if (RT_SUCCESS(rc))
    569569            {
    570570                pProxyDev->Backend.pv = pDevLnx;
     
    907907            if (VBOX_FAILURE(rc2))
    908908                usbProxLinuxUrbUnplugged(pProxyDev);
    909             if (VBOX_SUCCESS(rc2))
     909            if (RT_SUCCESS(rc2))
    910910            {
    911911                ASMAtomicDecU32(&g_cResetActive);
  • trunk/src/VBox/RDP/client/vrdp/vrdpusb.h

    r9902 r11610  
    7474#define VERR_VUSB_USBFS_PERMISSION (-2005)
    7575
    76 #define VBOX_SUCCESS(_rc) ((_rc) >= 0)
     76#define RT_SUCCESS(_rc) ((_rc) >= 0)
    7777
    7878#define RTFILE int
     
    9999} while (0)
    100100
    101 #define AssertRC(_rc) Assert(VBOX_SUCCESS(_rc))
    102 
    103 #define RT_FAILURE(_rc) (!VBOX_SUCCESS(_rc))
     101#define AssertRC(_rc) Assert(RT_SUCCESS(_rc))
     102
     103#define RT_FAILURE(_rc) (!RT_SUCCESS(_rc))
    104104
    105105#define NOREF(_a) ((void)_a)
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