X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fdlfcn.h;h=46c4e18555710eae3dde6fdc9f87f407cc0dc071;hp=e98c8ca616a842fa5aa782ea2016681d2bb4cece;hb=e00e07f66456d5bcdfde84a1801230ce8bf40ee7;hpb=f419bcb9dcfb6af60fbf1d58d92caf4b3d62a4da diff --git a/include/dlfcn.h b/include/dlfcn.h index e98c8ca6..46c4e185 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include + #define RTLD_LAZY 1 #define RTLD_NOW 2 #define RTLD_GLOBAL 256 @@ -16,9 +18,9 @@ extern "C" { int dlclose(void *); char *dlerror(void); void *dlopen(const char *, int); -void *dlsym(void *, const char *); +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;