VirtualBox

Ignore:
Timestamp:
Apr 23, 2015 10:07:14 AM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: header file inclusion clean-up.

File:
1 edited

Legend:

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

    r55392 r55402  
    5555 */
    5656
    57 #ifdef XORG_7X
    58 # include <stdlib.h>
    59 # include <string.h>
    60 #endif
    61 
    62 #include "xf86.h"
    63 #include "xf86_OSproc.h"
    64 #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
    65 # include "xf86Resources.h"
    66 #endif
    67 
    68 /* This was accepted upstream in X.Org Server 1.16 which bumped the video
    69  * driver ABI to 17. */
    70 #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 17
    71 # define SET_HAVE_VT_PROPERTY
    72 #endif
    73 
    74 #ifndef PCIACCESS
    75 /* Drivers for PCI hardware need this */
    76 # include "xf86PciInfo.h"
    77 /* Drivers that need to access the PCI config space directly need this */
    78 # include "xf86Pci.h"
    79 #endif
    80 
    81 #include "fb.h"
    82 
    8357#include "vboxvideo.h"
    8458#include <VBox/VBoxGuest.h>
     
    8660#include "version-generated.h"
    8761#include "product-generated.h"
    88 #include <xf86.h>
    89 #include <misc.h>
    90 
    91 /* All drivers initialising the SW cursor need this */
    92 #include "mipointer.h"
    93 
    94 /* Colormap handling */
     62
     63/* Basic definitions and functions needed by all drivers. */
     64#include "xf86.h"
     65/* For video memory mapping. */
     66#include "xf86_OSproc.h"
     67#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
     68/* PCI resources. */
     69# include "xf86Resources.h"
     70#endif
     71/* Generic server linear frame-buffer APIs. */
     72#include "fb.h"
     73/* Colormap and visual handling. */
    9574#include "micmap.h"
    9675#include "xf86cmap.h"
    97 
    98 /* DPMS */
    99 /* #define DPMS_SERVER
    100 #include "extensions/dpms.h" */
    101 
    10276/* ShadowFB support */
    10377#include "shadowfb.h"
    104 
    10578/* VGA hardware functions for setting and restoring text mode */
    10679#include "vgaHW.h"
    107 
     80#ifdef VBOX_DRI
     81# include "xf86drm.h"
     82# include "xf86drmMode.h"
     83#endif
    10884#ifdef VBOXVIDEO_13
    10985/* X.org 1.3+ mode setting */
     
    11288# include "xf86Modes.h"
    11389#endif
    114 
    11590/* For setting the root window property. */
    116 #include <X11/Xatom.h>
    11791#include "property.h"
    118 
    119 #ifdef VBOX_DRI
    120 # include "xf86drm.h"
    121 # include "xf86drmMode.h"
     92#include "X11/Xatom.h"
     93
     94#ifdef XORG_7X
     95# include <stdlib.h>
     96# include <string.h>
     97#endif
     98
     99/* This was accepted upstream in X.Org Server 1.16 which bumped the video
     100 * driver ABI to 17. */
     101#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 17
     102# define SET_HAVE_VT_PROPERTY
    122103#endif
    123104
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