16b63a9
From edcbe5f52ddfceee3d66d69bbcebbceac06b6d0d Mon Sep 17 00:00:00 2001
16b63a9
From: Adam Jackson <ajax@redhat.com>
16b63a9
Date: Tue, 4 Feb 2020 16:38:06 -0500
16b63a9
Subject: [PATCH xf86-video-amdgpu] Fix link failure with gcc 10
16b63a9
16b63a9
Without the 'extern' this looks like a definition not just a
16b63a9
declaration, in every file that includes the header. gcc 10 is stricter
16b63a9
about this kind of multiple definition.
16b63a9
---
16b63a9
 src/drmmode_display.h | 2 +-
16b63a9
 1 file changed, 1 insertion(+), 1 deletion(-)
16b63a9
16b63a9
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
16b63a9
index 803ac3c..9c0f25a 100644
16b63a9
--- a/src/drmmode_display.h
16b63a9
+++ b/src/drmmode_display.h
16b63a9
@@ -289,7 +289,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type,
16b63a9
 			 uint64_t *ust, uint32_t *result_seq);
16b63a9
 
16b63a9
 
16b63a9
-miPointerSpriteFuncRec drmmode_sprite_funcs;
16b63a9
+extern miPointerSpriteFuncRec drmmode_sprite_funcs;
16b63a9
 
16b63a9
 
16b63a9
 #endif
16b63a9
-- 
16b63a9
2.23.0
16b63a9