dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2012 02:58:34 +0000 (22:58 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2012 02:58:34 +0000 (22:58 -0400)
include/dlfcn.h

index 2e7d0283c237bf3e955581bd339d675983bab53e..53871ee033fad18c493e21e472daee3d0697eae7 100644 (file)
@@ -24,7 +24,7 @@ char  *dlerror(void);
 void  *dlopen(const char *, int);
 void  *dlsym(void *__restrict, const char *__restrict);
 
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 typedef struct {
        const char *dli_fname;
        void *dli_fbase;