diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-04-13 19:56:39 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-04-13 19:56:39 +0000 |
commit | d4c0bd6741860a563f9cdd8280b2d8948ffd3270 (patch) | |
tree | 01436391bdad3678da81d92a343b2d207bfe7d97 /driver/xf86-video-intel | |
parent | adf90efb468836718a65424c703e4363b17e5e39 (diff) |
Make it possible to build drivers with the newer proto headers. ok oga@.
Diffstat (limited to 'driver/xf86-video-intel')
-rw-r--r-- | driver/xf86-video-intel/src/ch7017/ch7017.c | 4 | ||||
-rw-r--r-- | driver/xf86-video-intel/src/ch7xxx/ch7xxx.c | 4 | ||||
-rw-r--r-- | driver/xf86-video-intel/src/ivch/ivch.c | 4 | ||||
-rw-r--r-- | driver/xf86-video-intel/src/sil164/sil164.c | 4 | ||||
-rw-r--r-- | driver/xf86-video-intel/src/tfp410/tfp410.c | 4 | ||||
-rw-r--r-- | driver/xf86-video-intel/uxa/uxa-priv.h | 34 |
6 files changed, 54 insertions, 0 deletions
diff --git a/driver/xf86-video-intel/src/ch7017/ch7017.c b/driver/xf86-video-intel/src/ch7017/ch7017.c index 759fc24b0..d3b37d44b 100644 --- a/driver/xf86-video-intel/src/ch7017/ch7017.c +++ b/driver/xf86-video-intel/src/ch7017/ch7017.c @@ -39,8 +39,12 @@ #include "miscstruct.h" #include "xf86i2c.h" #include "xf86Crtc.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "../i2c_vid.h" #include "ch7017_reg.h" diff --git a/driver/xf86-video-intel/src/ch7xxx/ch7xxx.c b/driver/xf86-video-intel/src/ch7xxx/ch7xxx.c index 8a439e420..a878a7f91 100644 --- a/driver/xf86-video-intel/src/ch7xxx/ch7xxx.c +++ b/driver/xf86-video-intel/src/ch7xxx/ch7xxx.c @@ -39,8 +39,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "miscstruct.h" #include "xf86i2c.h" #include "xf86Crtc.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "../i2c_vid.h" #include "ch7xxx.h" diff --git a/driver/xf86-video-intel/src/ivch/ivch.c b/driver/xf86-video-intel/src/ivch/ivch.c index 873afcc9e..dd942cdf9 100644 --- a/driver/xf86-video-intel/src/ivch/ivch.c +++ b/driver/xf86-video-intel/src/ivch/ivch.c @@ -36,8 +36,12 @@ #include "miscstruct.h" #include "xf86i2c.h" #include "xf86Crtc.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include <unistd.h> #include "../i2c_vid.h" diff --git a/driver/xf86-video-intel/src/sil164/sil164.c b/driver/xf86-video-intel/src/sil164/sil164.c index 410a681f5..eec59aa6f 100644 --- a/driver/xf86-video-intel/src/sil164/sil164.c +++ b/driver/xf86-video-intel/src/sil164/sil164.c @@ -40,8 +40,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "miscstruct.h" #include "xf86i2c.h" #include "xf86Crtc.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "../i2c_vid.h" #include "sil164.h" diff --git a/driver/xf86-video-intel/src/tfp410/tfp410.c b/driver/xf86-video-intel/src/tfp410/tfp410.c index c2c4fc3d5..fc2d9cf83 100644 --- a/driver/xf86-video-intel/src/tfp410/tfp410.c +++ b/driver/xf86-video-intel/src/tfp410/tfp410.c @@ -39,8 +39,12 @@ #include "miscstruct.h" #include "xf86i2c.h" #include "xf86Crtc.h" +#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpmsconst.h> +#else #define DPMS_SERVER #include <X11/extensions/dpms.h> +#endif #include "../i2c_vid.h" #include "tfp410.h" diff --git a/driver/xf86-video-intel/uxa/uxa-priv.h b/driver/xf86-video-intel/uxa/uxa-priv.h index d1cd341eb..96b183302 100644 --- a/driver/xf86-video-intel/uxa/uxa-priv.h +++ b/driver/xf86-video-intel/uxa/uxa-priv.h @@ -42,9 +42,13 @@ #define NEED_EVENTS #include <X11/Xproto.h> #ifdef MITSHM +#ifdef HAVE_X11_EXTENSIONS_SHMPROTO_H +#include <X11/extensions/shmproto.h> +#else #define _XSHM_SERVER_ #include <X11/extensions/shmstr.h> #endif +#endif #include "scrnintstr.h" #include "pixmapstr.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; #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; /* XXX these come from shmint.h, which isn't exported by the server */ |