Make it possible to build drivers with the newer proto headers. ok oga@.

This commit is contained in:
matthieu 2010-04-13 19:56:37 +00:00
parent 49012820cb
commit 9ac8837d36
11 changed files with 74 additions and 0 deletions

View File

@ -33,8 +33,12 @@
#include "config.h" #include "config.h"
#endif #endif
/* DPMS */ /* DPMS */
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include "radeon.h" #include "radeon.h"
#include "radeon_reg.h" #include "radeon_reg.h"

View File

@ -34,8 +34,12 @@
#include "config.h" #include "config.h"
#endif #endif
/* DPMS */ /* DPMS */
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include <unistd.h> #include <unistd.h>
#include "radeon.h" #include "radeon.h"

View File

@ -104,8 +104,12 @@
#include "vgaHW.h" #include "vgaHW.h"
#endif #endif
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include "atipciids.h" #include "atipciids.h"
#include "radeon_chipset_gen.h" #include "radeon_chipset_gen.h"

View File

@ -65,8 +65,12 @@
#endif #endif
#include "globals.h" #include "globals.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#define DEBUG 0 #define DEBUG 0

View File

@ -39,8 +39,12 @@
#include "miscstruct.h" #include "miscstruct.h"
#include "xf86i2c.h" #include "xf86i2c.h"
#include "xf86Crtc.h" #include "xf86Crtc.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include "../i2c_vid.h" #include "../i2c_vid.h"
#include "ch7017_reg.h" #include "ch7017_reg.h"

View File

@ -39,8 +39,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "miscstruct.h" #include "miscstruct.h"
#include "xf86i2c.h" #include "xf86i2c.h"
#include "xf86Crtc.h" #include "xf86Crtc.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include "../i2c_vid.h" #include "../i2c_vid.h"
#include "ch7xxx.h" #include "ch7xxx.h"

View File

@ -36,8 +36,12 @@
#include "miscstruct.h" #include "miscstruct.h"
#include "xf86i2c.h" #include "xf86i2c.h"
#include "xf86Crtc.h" #include "xf86Crtc.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include <unistd.h> #include <unistd.h>
#include "../i2c_vid.h" #include "../i2c_vid.h"

View File

@ -40,8 +40,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "miscstruct.h" #include "miscstruct.h"
#include "xf86i2c.h" #include "xf86i2c.h"
#include "xf86Crtc.h" #include "xf86Crtc.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include "../i2c_vid.h" #include "../i2c_vid.h"
#include "sil164.h" #include "sil164.h"

View File

@ -39,8 +39,12 @@
#include "miscstruct.h" #include "miscstruct.h"
#include "xf86i2c.h" #include "xf86i2c.h"
#include "xf86Crtc.h" #include "xf86Crtc.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#define DPMS_SERVER #define DPMS_SERVER
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
#include "../i2c_vid.h" #include "../i2c_vid.h"
#include "tfp410.h" #include "tfp410.h"

View File

@ -42,9 +42,13 @@
#define NEED_EVENTS #define NEED_EVENTS
#include <X11/Xproto.h> #include <X11/Xproto.h>
#ifdef MITSHM #ifdef MITSHM
#ifdef HAVE_X11_EXTENSIONS_SHMPROTO_H
#include <X11/extensions/shmproto.h>
#else
#define _XSHM_SERVER_ #define _XSHM_SERVER_
#include <X11/extensions/shmstr.h> #include <X11/extensions/shmstr.h>
#endif #endif
#endif
#include "scrnintstr.h" #include "scrnintstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "windowstr.h" #include "windowstr.h"
@ -319,6 +323,36 @@ uxa_get_image (DrawablePtr pDrawable, int x, int y, int w, int h,
extern const GCOps uxa_ops; extern const GCOps uxa_ops;
#ifdef MITSHM #ifdef MITSHM
#ifdef HAVE_X11_EXTENSIONS_SHMPROTO_H
#define XSHM_PUT_IMAGE_ARGS \
DrawablePtr /* dst */, \
GCPtr /* pGC */, \
int /* depth */, \
unsigned int /* format */, \
int /* w */, \
int /* h */, \
int /* sx */, \
int /* sy */, \
int /* sw */, \
int /* sh */, \
int /* dx */, \
int /* dy */, \
char * /* data */
#define XSHM_CREATE_PIXMAP_ARGS \
ScreenPtr /* pScreen */, \
int /* width */, \
int /* height */, \
int /* depth */, \
char * /* addr */
typedef struct _ShmFuncs {
PixmapPtr (* CreatePixmap)(XSHM_CREATE_PIXMAP_ARGS);
void (* PutImage)(XSHM_PUT_IMAGE_ARGS);
} ShmFuncs, *ShmFuncsPtr;
#endif
extern ShmFuncs uxa_shm_funcs; extern ShmFuncs uxa_shm_funcs;
/* XXX these come from shmint.h, which isn't exported by the server */ /* XXX these come from shmint.h, which isn't exported by the server */

View File

@ -63,10 +63,14 @@
#include "atimach64io.h" #include "atimach64io.h"
#include "atirgb514.h" #include "atirgb514.h"
#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
#include <X11/extensions/dpmsconst.h>
#else
#ifndef DPMS_SERVER #ifndef DPMS_SERVER
# define DPMS_SERVER # define DPMS_SERVER
#endif #endif
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#endif
/* /*
* ATIMach64PreInit -- * ATIMach64PreInit --