summaryrefslogtreecommitdiff
path: root/driver/xf86-video-tdfx/src
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2017-02-18 18:23:57 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2017-02-18 18:23:57 +0000
commit5d25acde2b17d3f1ab5a9e6db234060fd73bf649 (patch)
treeebf20cd4ee86e39f8c8b7f180cdac49686df4ab3 /driver/xf86-video-tdfx/src
parente0456d6cf162e631797fec84c649dfa4fb006cd9 (diff)
Update to xf86-video-tdfx 1.4.7
Diffstat (limited to 'driver/xf86-video-tdfx/src')
-rw-r--r--driver/xf86-video-tdfx/src/compat-api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/xf86-video-tdfx/src/compat-api.h b/driver/xf86-video-tdfx/src/compat-api.h
index 98ba43511..44daea42e 100644
--- a/driver/xf86-video-tdfx/src/compat-api.h
+++ b/driver/xf86-video-tdfx/src/compat-api.h
@@ -78,11 +78,19 @@
#define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, int argc, char **argv
+#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0)
+#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout
+#define BLOCKHANDLER_ARGS arg, pTimeout
+
+#define WAKEUPHANDLER_ARGS_DECL ScreenPtr arg, unsigned long result
+#define WAKEUPHANDLER_ARGS arg, result
+#else
#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask
#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
#define WAKEUPHANDLER_ARGS_DECL ScreenPtr arg, unsigned long result, pointer read_mask
#define WAKEUPHANDLER_ARGS arg, result, read_mask
+#endif
#define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen
#define CLOSE_SCREEN_ARGS pScreen