Blame 0001-Fix-link-failure-with-gcc-10.patch

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