diff --git a/hw/xfree86/loader/dlloader.c b/hw/xfree86/loader/dlloader.c index 2afdef7..bf7d03a 100644 --- a/hw/xfree86/loader/dlloader.c +++ b/hw/xfree86/loader/dlloader.c @@ -65,6 +65,12 @@ #define DLOPEN_GLOBAL 0 #endif +#if defined(RTLD_DEFAULT) +#define DLSYM_DEFAULT RTLD_DEFAULT +#else +#define DLSYM_DEFAULT 0 +#endif + #if defined(CSRG_BASED) && !defined(__ELF__) #define DLSYM_PREFIX "_" #else @@ -113,7 +119,7 @@ DLFindSymbol(const char *name) DLModuleList *l; void *p; - p = dlsym(RTLD_DEFAULT, name); + p = dlsym(DLSYM_DEFAULT, name); if (p != NULL) return p;