summaryrefslogtreecommitdiff
path: root/driver/xf86-video-r128
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2017-02-18 18:29:56 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2017-02-18 18:29:56 +0000
commit0dbce3cdd131086cedb1c8aade32eedf6e2d92aa (patch)
treea2ecb1a5de6649fc1258dde4f10522529f186ec1 /driver/xf86-video-r128
parent57c1f1dd5e30851ac083a709aead751903251ba7 (diff)
Adapt Block/WakeupHandler signature for ABI 23
Diffstat (limited to 'driver/xf86-video-r128')
-rw-r--r--driver/xf86-video-r128/src/compat-api.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/xf86-video-r128/src/compat-api.h b/driver/xf86-video-r128/src/compat-api.h
index 6bc946fd6..89976e41c 100644
--- a/driver/xf86-video-r128/src/compat-api.h
+++ b/driver/xf86-video-r128/src/compat-api.h
@@ -75,8 +75,13 @@
#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
+#else
#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask
#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
+#endif
#define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen
#define CLOSE_SCREEN_ARGS pScreen