musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年09月06日 22:58:34 -0400
committerRich Felker <dalias@aerifal.cx>2012年09月06日 22:58:34 -0400
commitac5d085691e5a797a21ae36111aa0b274e1cf4ba (patch)
tree84a0c2137558e53831720c232a454c32c621437f
parent400c5e5c8307a2ebe44ef1f203f5a15669f20347 (diff)
downloadmusl-ac5d085691e5a797a21ae36111aa0b274e1cf4ba.tar.gz
dladdr should be available under _BSD_SOURCE as well as _GNU_SOURCE
Diffstat
-rw-r--r--include/dlfcn.h 2
1 files changed, 1 insertions, 1 deletions
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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 02:24:13 +0000

AltStyle によって変換されたページ (->オリジナル) /