diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dlfcn.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h index dea74c7d..e98c8ca6 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -18,6 +18,16 @@ char *dlerror(void); void *dlopen(const char *, int); void *dlsym(void *, const char *); +#ifdef _GNU_SOURCE +typedef struct { + const char *dli_fname; + void *dli_fbase; + const char *dli_sname; + void *dli_saddr; +} Dl_info; +int dladdr(void *, Dl_info *); +#endif + #ifdef __cplusplus } #endif |