Dash:
[t2-trunk.git] / package / xorg / xf86-video-freedreno / hotfix.patch
blob3df1d318966b10565e819924c6ede2802643bfdf
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../xf86-video-freedreno/hotfix.patch
5 # Copyright (C) 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 From 5c82dc7874b6eaff39dc8c8575e72e5a40f13ea6 Mon Sep 17 00:00:00 2001
18 From: Adam Jackson <ajax@redhat.com>
19 Date: Tue, 19 Jul 2016 10:03:56 -0400
20 Subject: Adapt Block/WakeupHandler signature for ABI 23
22 Signed-off-by: Adam Jackson <ajax@redhat.com>
23 ---
24 src/compat-api.h | 5 +++++
25 1 file changed, 5 insertions(+)
27 diff --git a/src/compat-api.h b/src/compat-api.h
28 index 4f7b9ea..15b92fe 100644
29 --- a/src/compat-api.h
30 +++ b/src/compat-api.h
31 @@ -76,8 +76,13 @@
33 #define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, int argc, char **argv
35 +#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0)
36 +#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout
37 +#define BLOCKHANDLER_ARGS arg, pTimeout
38 +#else
39 #define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask
40 #define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
41 +#endif
43 #define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen
44 #define CLOSE_SCREEN_ARGS pScreen
45 --
46 cgit v1.2.1