projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for musl libc to ust-dlfcn.h
[lttng-ust.git]
/
include
/
lttng
/
ust-dlfcn.h
diff --git
a/include/lttng/ust-dlfcn.h
b/include/lttng/ust-dlfcn.h
index c92f1bb6f320c99f38f61829340377945e7dfb3a..7471d94f689e328b77185cbbb91dc8823b957b6e 100644
(file)
--- a/
include/lttng/ust-dlfcn.h
+++ b/
include/lttng/ust-dlfcn.h
@@
-31,6
+31,7
@@
#error "Please include lttng/ust-dlfcn.h before dlfcn.h."
#endif /* _DLFCN_H */
#error "Please include lttng/ust-dlfcn.h before dlfcn.h."
#endif /* _DLFCN_H */
+#ifdef __GLIBC__
/*
* glibc declares dlsym() and dlerror() with __attribute__((leaf)) (see
* THROW annotation). Unfortunately, this is not in sync with reality,
/*
* glibc declares dlsym() and dlerror() with __attribute__((leaf)) (see
* THROW annotation). Unfortunately, this is not in sync with reality,
@@
-57,5
+58,8
@@
extern int dlclose(void *__handle) __nonnull ((1));
extern void *dlsym(void *__restrict __handle,
__const char *__restrict __name) __nonnull ((2));
extern char *dlerror(void);
extern void *dlsym(void *__restrict __handle,
__const char *__restrict __name) __nonnull ((2));
extern char *dlerror(void);
+#else
+#include <dlfcn.h>
+#endif /* __GLIBC__ */
#endif /* _LTTNG_UST_DLFCN_H */
#endif /* _LTTNG_UST_DLFCN_H */
This page took
0.02343 seconds
and
5
git commands to generate.