aboutsummaryrefslogtreecommitdiffstats
path: root/community/xf86-video-amdgpu/gcc-10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/xf86-video-amdgpu/gcc-10.patch')
-rw-r--r--community/xf86-video-amdgpu/gcc-10.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/xf86-video-amdgpu/gcc-10.patch b/community/xf86-video-amdgpu/gcc-10.patch
new file mode 100644
index 00000000000..7e546b672c8
--- /dev/null
+++ b/community/xf86-video-amdgpu/gcc-10.patch
@@ -0,0 +1,16 @@
+Upstream: Should be
+Reason: Fixes compilation with gcc-10
+
+diff --git a/src/drmmode_display.h b/src/drmmode_display.h
+index 803ac3c..9c0f25a 100644
+--- a/src/drmmode_display.h
++++ b/src/drmmode_display.h
+@@ -289,7 +289,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type,
+ uint64_t *ust, uint32_t *result_seq);
+
+
+-miPointerSpriteFuncRec drmmode_sprite_funcs;
++extern miPointerSpriteFuncRec drmmode_sprite_funcs;
+
+
+ #endif