Ver código fonte

dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE

Rich Felker 12 anos atrás
pai
commit
ac5d085691
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      include/dlfcn.h

+ 1 - 1
include/dlfcn.h

@@ -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;