Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] [PATCH lttng-ust 1/4] Add support for musl libc to ust-dlfcn.h
@ 2016-05-30 20:31 Michael Jeanson
  2016-05-30 20:31 ` [lttng-dev] [PATCH lttng-ust 2/4] Fix: strerror_r behavior is glibc specific Michael Jeanson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Michael Jeanson @ 2016-05-30 20:31 UTC (permalink / raw)


Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 include/lttng/ust-dlfcn.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lttng/ust-dlfcn.h b/include/lttng/ust-dlfcn.h
index c92f1bb..7471d94 100644
--- 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 */
 
+#ifdef __GLIBC__
 /*
  * 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);
+#else
+#include <dlfcn.h>
+#endif /* __GLIBC__ */
 
 #endif /* _LTTNG_UST_DLFCN_H */
-- 
2.7.4



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-31  4:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-30 20:31 [lttng-dev] [PATCH lttng-ust 1/4] Add support for musl libc to ust-dlfcn.h Michael Jeanson
2016-05-30 20:31 ` [lttng-dev] [PATCH lttng-ust 2/4] Fix: strerror_r behavior is glibc specific Michael Jeanson
2016-05-30 20:31 ` [lttng-dev] [PATCH lttng-ust 3/4] Fix: use limits.h in ust-elf test Michael Jeanson
2016-05-30 20:31 ` [lttng-dev] [PATCH lttng-ust 4/4] Use config.h to detect sched_getcpu support Michael Jeanson
2016-05-31  4:38 ` [lttng-dev] [PATCH lttng-ust 1/4] Add support for musl libc to ust-dlfcn.h Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox