From f7769ea86e265f347eb58c517ccb5ef8b35eec27 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sun, 2 Mar 2008 14:49:21 -0500 Subject: [PATCH] Ensure symbols used by other modules are visible. The xf86-video-ati drivers are one of the cases where LoaderSymbol is widely used in some obscure ways. This patch fixes the problem, and allows compiling with -fvisibility=hidden. --- src/radeon_driver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/radeon_driver.c') diff --git a/src/radeon_driver.c b/src/radeon_driver.c index e41906c4..4943629f 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -226,13 +226,11 @@ static const OptionInfoRec RADEONOptions[] = { const OptionInfoRec *RADEONOptionsWeak(void) { return RADEONOptions; } +extern _X_EXPORT int gRADEONEntityIndex; + static int getRADEONEntityIndex(void) { - int *radeon_entity_index = LoaderSymbol("gRADEONEntityIndex"); - if (!radeon_entity_index) - return -1; - else - return *radeon_entity_index; + return gRADEONEntityIndex; } struct RADEONInt10Save { -- cgit v1.2.3