diff options
Diffstat (limited to 'gc_dlopen.c')
-rw-r--r-- | gc_dlopen.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gc_dlopen.c b/gc_dlopen.c index c0ca658a..64619848 100644 --- a/gc_dlopen.c +++ b/gc_dlopen.c @@ -85,4 +85,14 @@ GC_API void * WRAP_FUNC(dlopen)(const char *path, int mode) # endif return(result); } + +#ifdef GC_USE_LD_WRAP + /* Define GC_ function as an alias for the plain one, which will be */ + /* intercepted. This allows files which include gc.h, and hence */ + /* generate references to the GC_ symbol, to see the right symbol. */ + GC_API int GC_dlopen(const char *path, int mode) { + return dlopen(path, mode); + } +#endif /* Linker-based interception. */ + # endif /* GC_PTHREADS || GC_SOLARIS_THREADS ... */ |