Fix link failure with gcc 10

Without the 'extern' this looks like a definition not just a
declaration, in every file that includes the header. gcc 10 is stricter
about this kind of multiple definition.

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Adam Jackson
2020-02-04 16:38:06 -05:00
parent b9bd8097e1
commit f223035f4f

View File

@@ -262,7 +262,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