[PATCH 2/3] Restore extern to the declaration of __glXDRISWRastProvider

Jon TURNEY jon.turney at dronecode.org.uk
Thu Jul 12 05:30:22 PDT 2012


b86aa74 dropped the 'extern' from the declaration of __glXDRISWRastProvider

This turns out to be important to me, as without it, the final link only gets
the tentative definition of __glXDRISWRastProvider implied by the declaration,
and not the proper one from glxdriswrast.c, presumably because nothing else
references anything in the object that file generates.
---
 glx/glxserver.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/glx/glxserver.h b/glx/glxserver.h
index d9b106b..1021aec 100644
--- a/glx/glxserver.h
+++ b/glx/glxserver.h
@@ -97,7 +97,7 @@ struct __GLXprovider {
     const char *name;
     __GLXprovider *next;
 };
-__GLXprovider __glXDRISWRastProvider;
+extern __GLXprovider __glXDRISWRastProvider;
 
 void GlxPushProvider(__GLXprovider * provider);
 
-- 
1.7.9



More information about the xorg-devel mailing list