summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-02 14:49:21 -0500
committerAlex Deucher <alex@cube.(none)>2008-03-02 14:49:21 -0500
commitf7769ea86e265f347eb58c517ccb5ef8b35eec27 (patch)
tree4ffbd3319821036f0c1d9718893742c32f134293 /src/radeon_driver.c
parenta4398ac3ad77216f2c8aa628425bef5f2912a0a9 (diff)
[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.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c8
1 files changed, 3 insertions, 5 deletions
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 {