VirtualBox

Changeset 31384 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 5, 2010 9:18:11 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64441
Message:

X11 additions: fixed unresolved symbols for Xorg < 7.0

Location:
trunk/src/VBox/Additions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp

    r30320 r31384  
    4848# undef memchr
    4949# define memchr xf86memchr
     50
     51# undef RTSTrEnd
     52# define RTStrEnd xf86RTStrEnd
     53
     54DECLINLINE(char const *) RTStrEnd(char const *pszString, size_t cchMax)
     55{
     56    /* Avoid potential issues with memchr seen in glibc. */
     57    if (cchMax > RTSTR_MEMCHR_MAX)
     58    {
     59        char const *pszRet = (char const *)memchr(pszString, '\0', RTSTR_MEMCHR_MAX);
     60        if (RT_LIKELY(pszRet))
     61            return pszRet;
     62        pszString += RTSTR_MEMCHR_MAX;
     63        cchMax    -= RTSTR_MEMCHR_MAX;
     64    }
     65    return (char const *)memchr(pszString, '\0', cchMax);
     66}
     67
     68DECLINLINE(char *) RTStrEnd(char *pszString, size_t cchMax)
     69{
     70    /* Avoid potential issues with memchr seen in glibc. */
     71    if (cchMax > RTSTR_MEMCHR_MAX)
     72    {
     73        char *pszRet = (char *)memchr(pszString, '\0', RTSTR_MEMCHR_MAX);
     74        if (RT_LIKELY(pszRet))
     75            return pszRet;
     76        pszString += RTSTR_MEMCHR_MAX;
     77        cchMax    -= RTSTR_MEMCHR_MAX;
     78    }
     79    return (char *)memchr(pszString, '\0', cchMax);
     80}
     81
    5082#endif /* VBOX_VBGLR3_XFREE86 */
    5183
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp

    r28800 r31384  
    3737#include "VBGLR3Internal.h"
    3838
     39#ifdef VBOX_VBGLR3_XFREE86
     40/* Rather than try to resolve all the header file conflicts, I will just
     41   prototype what we need here. */
     42extern "C" void* xf86memcpy(void*,const void*,xf86size_t);
     43# undef memcpy
     44# define memcpy xf86memcpy
     45#endif /* VBOX_VBGLR3_XFREE86 */
    3946
    4047/**
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r28800 r31384  
    3636
    3737#include "VBGLR3Internal.h"
     38
     39#ifdef VBOX_VBGLR3_XFREE86
     40/* Rather than try to resolve all the header file conflicts, I will just
     41   prototype what we need here. */
     42extern "C" void* xf86memcpy(void*,const void*,xf86size_t);
     43# undef memcpy
     44# define memcpy xf86memcpy
     45#endif /* VBOX_VBGLR3_XFREE86 */
    3846
    3947#define VIDEO_PROP_PREFIX "/VirtualBox/GuestAdd/Vbgl/Video/"
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r28800 r31384  
    276276$$(PATH_vboxvideo_drv)/tstvboxvideo68.run: $$(INSTARGET_vboxvideo_drv)
    277277        $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET)  \
    278             $(INSTARGET_vboxvideo_drv) $(OUR_PATH_VBOXVIDEO)/undefined_70 --static
     278            $(INSTARGET_vboxvideo_drv) $(OUR_PATH_VBOXVIDEO)/undefined_68 --static
    279279        $(QUIET)$(APPEND) -t "$@" "done"
    280280     endif
  • trunk/src/VBox/Additions/x11/vboxvideo/undefined_68

    r31295 r31384  
    11DGAInit
     2ErrorF
    23LoaderRefSymLists
    34PixmapWidthPaddingInfo
    45SetTimeSinceLastInputEvent
    56ShadowFBInit2
     7VBEExtendedInit
    68VBEGetVBEMode
    79VBEInit
     
    1012VBESetGetPaletteData
    1113VBESetVBEMode
     14VErrorF
    1215XNFalloc
    1316XNFcalloc
    1417XNFrealloc
     18XNFstrdup
    1519Xalloc
    1620Xcalloc
     
    3438sigdelset
    3539sigfillset
     40vgaHWDPMSSet
     41vgaHWFreeHWRec
     42vgaHWGetHWRec
     43vgaHWGetIndex
     44vgaHWHandleColormaps
     45vgaHWMapMem
     46vgaHWRestoreFonts
     47vgaHWSaveFonts
     48vgaHWSaveScreen
     49vgaHWUnmapMem
    3650xf86AddDriver
    3751xf86CollectOptions
     
    3953xf86CreateCursorInfoRec
    4054xf86DPMSInit
     55xf86DestroyCursorInfoRec
    4156xf86DrvMsg
    4257xf86GetEntityInfo
     
    5368xf86MatchDevice
    5469xf86MatchPciInstances
     70xf86Msg
    5571xf86PrintChipsets
    5672xf86PrintDepthBpp
     
    7389xf86errno
    7490xf86ioctl
     91xf86isspace
     92xf86memchr
    7593xf86memcpy
    7694xf86memset
    7795xf86open
     96xf86sprintf
    7897xf86sscanf
     98xf86strcmp
     99xf86strcpy
    79100xf86strdup
    80101xf86strerror
     102xf86strlen
     103xf86strtoul
     104xf86vsnprintf
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