diff options
author | Adam Jackson <ajax@redhat.com> | 2016-07-19 10:03:56 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-07-19 10:17:40 -0400 |
commit | eac4db4f0cb22a23d6e69161dcaacc7d53978aae (patch) | |
tree | 507fcdcea51aabdd661599553b01c1463fbdec80 | |
parent | 3be841d0ae7d505cef325993205b12d15e98dba9 (diff) |
Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/compat-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h index b299f83c..80a3ac46 100644 --- a/src/compat-api.h +++ b/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 |