diff options
Diffstat (limited to 'x11/xf86-video-ati/patches/patch-src_compat-api.h')
-rw-r--r-- | x11/xf86-video-ati/patches/patch-src_compat-api.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/xf86-video-ati/patches/patch-src_compat-api.h b/x11/xf86-video-ati/patches/patch-src_compat-api.h new file mode 100644 index 00000000000..8b21c890c53 --- /dev/null +++ b/x11/xf86-video-ati/patches/patch-src_compat-api.h @@ -0,0 +1,20 @@ +$NetBSD: patch-src_compat-api.h,v 1.1 2016/11/16 22:16:51 wiz Exp $ + +Adapt Block/WakeupHandler signature for ABI 23. + +--- src/compat-api.h.orig 2016-09-15 08:52:47.000000000 +0000 ++++ src/compat-api.h +@@ -73,8 +73,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 |