VirtualBox

Changeset 54324 in vbox


Ignore:
Timestamp:
Feb 20, 2015 10:38:11 AM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: fix for builds with system headers, thank you Gianfranco Costamagna.

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r54323 r54324  
    132132DLLS += vboxvideo_drv_70
    133133vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
    134 vboxvideo_drv_70_DEFS = $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=700000000
     134vboxvideo_drv_70_DEFS = $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=70000000
    135135ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
    136136 vboxvideo_drv_70_CFLAGS += -D_XPG6 -Wno-shadow # Use XPG6 until we have moved the C++ bits into a library.
     
    149149vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
    150150vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    151 vboxvideo_drv_71_DEFS := $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=700100000
     151vboxvideo_drv_71_DEFS := $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=70100000
    152152vboxvideo_drv_71_INCS = \
    153153        $(vboxvideo_xorg_INCS) \
     
    163163vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
    164164vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    165 vboxvideo_drv_13_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=100300000
     165vboxvideo_drv_13_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=10300000
    166166vboxvideo_drv_13_INCS = \
    167167        $(vboxvideo_xorg_INCS) \
     
    177177vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
    178178vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    179 vboxvideo_drv_14_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=100400000
     179vboxvideo_drv_14_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=10400000
    180180vboxvideo_drv_14_INCS = \
    181181        $(vboxvideo_xorg_INCS) \
     
    191191vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
    192192vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    193 vboxvideo_drv_15_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100503000
     193vboxvideo_drv_15_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10503000
    194194if1of ($(KBUILD_TARGET), linux solaris)
    195195 vboxvideo_drv_15_DEFS += \
     
    213213vboxvideo_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
    214214vboxvideo_drv_16_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    215 vboxvideo_drv_16_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100600000
     215vboxvideo_drv_16_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10600000
    216216if1of ($(KBUILD_TARGET), linux solaris)
    217217 vboxvideo_drv_16_DEFS += \
     
    231231vboxvideo_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
    232232vboxvideo_drv_17_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    233 vboxvideo_drv_17_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100699000
     233vboxvideo_drv_17_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10699000
    234234vboxvideo_drv_17_INCS = \
    235235        $(vboxvideo_xorg_INCS) \
     
    249249vboxvideo_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
    250250vboxvideo_drv_18_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    251 vboxvideo_drv_18_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100800000
     251vboxvideo_drv_18_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10800000
    252252vboxvideo_drv_18_INCS = \
    253253        $(vboxvideo_xorg_INCS) \
     
    263263vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
    264264vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    265 vboxvideo_drv_19_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=100900000
     265vboxvideo_drv_19_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10900000
    266266vboxvideo_drv_19_INCS = \
    267267        $(vboxvideo_xorg_INCS) \
     
    277277vboxvideo_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
    278278vboxvideo_drv_110_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    279 vboxvideo_drv_110_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101000000
     279vboxvideo_drv_110_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11000000
    280280vboxvideo_drv_110_INCS = \
    281281        $(vboxvideo_xorg_INCS) \
     
    291291vboxvideo_drv_111_TEMPLATE = VBOXGUESTR3XORGMOD
    292292vboxvideo_drv_111_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    293 vboxvideo_drv_111_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101100000
     293vboxvideo_drv_111_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11100000
    294294vboxvideo_drv_111_INCS = \
    295295        $(vboxvideo_xorg_INCS) \
     
    305305vboxvideo_drv_112_TEMPLATE = VBOXGUESTR3XORGMOD
    306306vboxvideo_drv_112_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    307 vboxvideo_drv_112_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101200000
     307vboxvideo_drv_112_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11200000
    308308vboxvideo_drv_112_INCS = \
    309309        $(vboxvideo_xorg_INCS) \
     
    319319vboxvideo_drv_113_TEMPLATE = VBOXGUESTR3XORGMOD
    320320vboxvideo_drv_113_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    321 vboxvideo_drv_113_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101300000
     321vboxvideo_drv_113_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11300000
    322322vboxvideo_drv_113_INCS = \
    323323        $(vboxvideo_xorg_INCS) \
     
    333333vboxvideo_drv_114_TEMPLATE = VBOXGUESTR3XORGMOD
    334334vboxvideo_drv_114_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    335 vboxvideo_drv_114_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101400000
     335vboxvideo_drv_114_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11400000
    336336vboxvideo_drv_114_INCS = \
    337337        $(vboxvideo_xorg_INCS) \
     
    347347vboxvideo_drv_115_TEMPLATE = VBOXGUESTR3XORGMOD
    348348vboxvideo_drv_115_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    349 vboxvideo_drv_115_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101500000
     349vboxvideo_drv_115_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11500000
    350350vboxvideo_drv_115_INCS = \
    351351        $(vboxvideo_xorg_INCS) \
     
    361361vboxvideo_drv_116_TEMPLATE = VBOXGUESTR3XORGMOD
    362362vboxvideo_drv_116_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    363 vboxvideo_drv_116_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101600000
     363vboxvideo_drv_116_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11600000
    364364vboxvideo_drv_116_INCS = \
    365365        $(vboxvideo_xorg_INCS) \
     
    375375vboxvideo_drv_117_TEMPLATE = VBOXGUESTR3XORGMOD
    376376vboxvideo_drv_117_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    377 vboxvideo_drv_117_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=101700000
     377vboxvideo_drv_117_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11700000
    378378vboxvideo_drv_117_INCS = \
    379379        $(vboxvideo_xorg_INCS) \
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r54040 r54324  
    134134/** Helper to work round different ways of getting the root window in different
    135135 * server versions. */
    136 #if defined(XORG_VERSION_CURRENT) && XORG_VERSION_CURRENT < 700000000 \
    137     && XORG_VERSION_CURRENT >= 100900000
     136#if defined(XORG_VERSION_CURRENT) && XORG_VERSION_CURRENT < 70000000 \
     137    && XORG_VERSION_CURRENT >= 10900000
    138138# define ROOT_WINDOW(pScrn) screenInfo.screens[(pScrn)->scrnIndex]->root
    139139#else
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