diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-04-13 19:54:47 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-04-13 19:54:47 +0000 |
commit | adf90efb468836718a65424c703e4363b17e5e39 (patch) | |
tree | b3b53765b85ecf464c153af52327a32e126635f3 /xserver/hw | |
parent | ca12b4fa619e24d52d0feb4dab5d579f82b4b8d7 (diff) |
Add a configure test for newer proto headers and use it to enable
building xserver 1.6 with those headers. ok oga@.
Diffstat (limited to 'xserver/hw')
-rw-r--r-- | xserver/hw/xfree86/common/xf86DPMS.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/common/xf86Events.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/common/xf86Init.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/common/xf86Xinput.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/dixmods/extmod/modinit.h | 16 | ||||
-rw-r--r-- | xserver/hw/xfree86/modes/xf86Crtc.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/modes/xf86Cursors.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/modes/xf86Rotate.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/vbe/vbe.c | 4 | ||||
-rw-r--r-- | xserver/hw/xfree86/vgahw/vgaHW.h | 4 |
10 files changed, 52 insertions, 0 deletions
diff --git a/xserver/hw/xfree86/common/xf86DPMS.c b/xserver/hw/xfree86/common/xf86DPMS.c index 5ee5e2451..70bfd58b6 100644 --- a/xserver/hw/xfree86/common/xf86DPMS.c +++ b/xserver/hw/xfree86/common/xf86DPMS.c @@ -40,8 +40,12 @@ #include "xf86.h" #include "xf86Priv.h" #ifdef DPMSExtension +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "dpmsproc.h" #endif diff --git a/xserver/hw/xfree86/common/xf86Events.c b/xserver/hw/xfree86/common/xf86Events.c index d6ef93a1b..fb096da60 100644 --- a/xserver/hw/xfree86/common/xf86Events.c +++ b/xserver/hw/xfree86/common/xf86Events.c @@ -82,8 +82,12 @@ #endif #ifdef DPMSExtension +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "dpmsproc.h" #endif diff --git a/xserver/hw/xfree86/common/xf86Init.c b/xserver/hw/xfree86/common/xf86Init.c index b4efa4278..ae1960e0f 100644 --- a/xserver/hw/xfree86/common/xf86Init.c +++ b/xserver/hw/xfree86/common/xf86Init.c @@ -83,10 +83,14 @@ #include "globals.h" #ifdef DPMSExtension +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> #include "dpmsproc.h" #endif +#endif #include <pciaccess.h> #include "Pci.h" diff --git a/xserver/hw/xfree86/common/xf86Xinput.c b/xserver/hw/xfree86/common/xf86Xinput.c index 1f412349c..abb54bb1b 100644 --- a/xserver/hw/xfree86/common/xf86Xinput.c +++ b/xserver/hw/xfree86/common/xf86Xinput.c @@ -65,8 +65,12 @@ #include "extinit.h" #ifdef DPMSExtension +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "dpmsproc.h" #endif diff --git a/xserver/hw/xfree86/dixmods/extmod/modinit.h b/xserver/hw/xfree86/dixmods/extmod/modinit.h index 1de14858c..a05014a17 100644 --- a/xserver/hw/xfree86/dixmods/extmod/modinit.h +++ b/xserver/hw/xfree86/dixmods/extmod/modinit.h @@ -7,8 +7,12 @@ #define INITARGS void #endif +#ifdef HAVE_X11_EXTENSIONS_SHAPEPROTO_H +#include <X11/extensions/shapeproto.h> +#else #define _SHAPE_SERVER_ /* don't want Xlib structures */ #include <X11/extensions/shapestr.h> +#endif #ifdef MULTIBUFFER extern void MultibufferExtensionInit(INITARGS); @@ -18,10 +22,14 @@ extern void MultibufferExtensionInit(INITARGS); #ifdef XTEST extern void XTestExtensionInit(INITARGS); +#ifdef HAVE_X11_EXTENSIONS_XTESTPROTO_H +#include <X11/extensions/xtestproto.h> +#else #define _XTEST_SERVER_ #include <X11/extensions/XTest.h> #include <X11/extensions/xteststr.h> #endif +#endif #if 1 extern void XTestExtension1Init(INITARGS); @@ -47,8 +55,12 @@ extern void XFree86DGARegister(INITARGS); #ifdef DPMSExtension extern void DPMSExtensionInit(INITARGS); +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #include <X11/extensions/dpmsstr.h> #endif +#endif #ifdef XV extern void XvExtensionInit(INITARGS); @@ -65,7 +77,11 @@ extern void ResExtensionInit(INITARGS); #ifdef SHM extern void ShmExtensionInit(INITARGS); +#ifdef HAVE_X11_EXTENSIONS_SHMPROTO_H +#include <X11/extensions/shmproto.h> +#else #include <X11/extensions/shmstr.h> +#endif extern void ShmRegisterFuncs( ScreenPtr pScreen, ShmFuncsPtr funcs); diff --git a/xserver/hw/xfree86/modes/xf86Crtc.c b/xserver/hw/xfree86/modes/xf86Crtc.c index ec2089d09..54a3e5f57 100644 --- a/xserver/hw/xfree86/modes/xf86Crtc.c +++ b/xserver/hw/xfree86/modes/xf86Crtc.c @@ -40,8 +40,12 @@ #include "xf86Priv.h" #include "xf86RandR12.h" #include "X11/extensions/render.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsproto.h> +#else #define DPMS_SERVER #include "X11/extensions/dpms.h" +#endif #include "X11/Xatom.h" #ifdef RENDER #include "picturestr.h" diff --git a/xserver/hw/xfree86/modes/xf86Cursors.c b/xserver/hw/xfree86/modes/xf86Cursors.c index fbd61e9fd..91dd8c751 100644 --- a/xserver/hw/xfree86/modes/xf86Cursors.c +++ b/xserver/hw/xfree86/modes/xf86Cursors.c @@ -39,8 +39,12 @@ #include "xf86RandR12.h" #include "xf86CursorPriv.h" #include "X11/extensions/render.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include "X11/extensions/dpms.h" +#endif #include "X11/Xatom.h" #ifdef RENDER #include "picturestr.h" diff --git a/xserver/hw/xfree86/modes/xf86Rotate.c b/xserver/hw/xfree86/modes/xf86Rotate.c index bb17df431..d945d2271 100644 --- a/xserver/hw/xfree86/modes/xf86Rotate.c +++ b/xserver/hw/xfree86/modes/xf86Rotate.c @@ -40,8 +40,12 @@ #include "xf86Modes.h" #include "xf86RandR12.h" #include "X11/extensions/render.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include "X11/extensions/dpms.h" +#endif #include "X11/Xatom.h" /* borrowed from composite extension, move to Render and publish? */ diff --git a/xserver/hw/xfree86/vbe/vbe.c b/xserver/hw/xfree86/vbe/vbe.c index 4986b5b29..cff1ef47c 100644 --- a/xserver/hw/xfree86/vbe/vbe.c +++ b/xserver/hw/xfree86/vbe/vbe.c @@ -18,8 +18,12 @@ #include "xf86.h" #include "vbe.h" #include <X11/Xarch.h> +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #define VERSION(x) VBE_VERSION_MAJOR(x),VBE_VERSION_MINOR(x) diff --git a/xserver/hw/xfree86/vgahw/vgaHW.h b/xserver/hw/xfree86/vgahw/vgaHW.h index a38ea7559..be6c3edad 100644 --- a/xserver/hw/xfree86/vgahw/vgaHW.h +++ b/xserver/hw/xfree86/vgahw/vgaHW.h @@ -25,8 +25,12 @@ #include "xf86DDC.h" #include "globals.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif extern int vgaHWGetIndex(void); |