Procházet zdrojové kódy

dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE

Rich Felker před 12 roky
rodič
revize
ac5d085691
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;