From: Rich Felker Date: Fri, 7 Sep 2012 02:58:34 +0000 (-0400) Subject: dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=ac5d085691e5a797a21ae36111aa0b274e1cf4ba dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE --- diff --git a/include/dlfcn.h b/include/dlfcn.h index 2e7d0283..53871ee0 100644 --- a/include/dlfcn.h +++ b/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;