diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-02 14:49:21 -0500 |
---|---|---|
committer | Alex Deucher <alex@cube.(none)> | 2008-03-02 14:49:21 -0500 |
commit | f7769ea86e265f347eb58c517ccb5ef8b35eec27 (patch) | |
tree | 4ffbd3319821036f0c1d9718893742c32f134293 /src/radeon_driver.c | |
parent | a4398ac3ad77216f2c8aa628425bef5f2912a0a9 (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.c | 8 |
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 { |