| author | Rich Felker <dalias@aerifal.cx> | 2012年08月26日 21:09:26 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2012年08月26日 21:09:26 -0400 | 
| commit | f419bcb9dcfb6af60fbf1d58d92caf4b3d62a4da (patch) | |
| tree | f9b1fc4c34d59ee892504c7259100e94140d3e98 /include/dlfcn.h | |
| parent | 9bff7c133e73ecfb200614d7a7d386a164a1a61f (diff) | |
| download | musl-f419bcb9dcfb6af60fbf1d58d92caf4b3d62a4da.tar.gz  | |
| -rw-r--r-- | include/dlfcn.h | 10 | 
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  |