blob: 7dfa233423433e26c9c6ec0047130c685c3c9b89 [file] [log] [blame]
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05001From cebbeaa9d0bdc18377faef27ea9ffd38e509d180 Mon Sep 17 00:00:00 2001
2From: Adam Jackson <ajax@redhat.com>
3Date: Tue, 4 Feb 2020 16:38:06 -0500
4Subject: [PATCH] Fix link failure with gcc 10
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Without the 'extern' this looks like a definition not just a
10declaration, in every file that includes the header. gcc 10 is stricter
11about this kind of multiple definition.
12
13Upstream-Status: Backport [https://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=f223035f4ffcff2a9296d1e907a5193f8e8845a3]
14Reviewed-by: Michel Dรคnzer <mdaenzer@redhat.com>
15---
16 src/drmmode_display.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/drmmode_display.h b/src/drmmode_display.h
20index 96eaef0..8cd8a0a 100644
21--- a/src/drmmode_display.h
22+++ b/src/drmmode_display.h
23@@ -262,7 +262,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type,
24 uint64_t *ust, uint32_t *result_seq);
25
26
27-miPointerSpriteFuncRec drmmode_sprite_funcs;
28+extern miPointerSpriteFuncRec drmmode_sprite_funcs;
29
30
31 #endif
32--
332.28.0
34