X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-dlfcn.h;h=7471d94f689e328b77185cbbb91dc8823b957b6e;hb=30307a67b48641875b122d8f832bbfb454e95d92;hp=c92f1bb6f320c99f38f61829340377945e7dfb3a;hpb=1c80c9098052ff7a07bb43df084c0f9d2b2e278c;p=deliverable%2Flttng-ust.git diff --git a/include/lttng/ust-dlfcn.h b/include/lttng/ust-dlfcn.h index c92f1bb6..7471d94f 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 +#endif /* __GLIBC__ */ #endif /* _LTTNG_UST_DLFCN_H */