X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-dlfcn.h;h=7cd5bf4811e9e2d3527dfe716f88cd187362fa91;hb=7b0fdd83c137bea1d7302df1a45252dfdccd8172;hp=7471d94f689e328b77185cbbb91dc8823b957b6e;hpb=97c7c238f60194565d4839e38e712414c22494e3;p=lttng-ust.git diff --git a/include/lttng/ust-dlfcn.h b/include/lttng/ust-dlfcn.h index 7471d94f..7cd5bf48 100644 --- a/include/lttng/ust-dlfcn.h +++ b/include/lttng/ust-dlfcn.h @@ -47,7 +47,11 @@ #define dlclose glibc_dlclose_proto_lies_about_leafness #define dlsym glibc_dlsym_proto_lies_about_leafness #define dlerror glibc_dlerror_proto_lies_about_leafness +#define dlmopen glibc_dlmopen_proto_lies_about_leafness +#define dlvsym glibc_dlvsym_proto_lies_about_leafness #include +#undef dlvsym +#undef dlmopen #undef dlerror #undef dlsym #undef dlclose @@ -58,6 +62,12 @@ extern int dlclose(void *__handle) __nonnull ((1)); extern void *dlsym(void *__restrict __handle, __const char *__restrict __name) __nonnull ((2)); extern char *dlerror(void); +#ifdef __USE_GNU +extern void *dlmopen(Lmid_t __nsid, const char *__file, int __mode); +extern void *dlvsym(void *__restrict __handle, + __const char *__restrict __name, + __const char *__restrict __version); +#endif #else #include #endif /* __GLIBC__ */