X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fdlfcn.h;h=46c4e18555710eae3dde6fdc9f87f407cc0dc071;hb=d18a410bbf259e5fee9fb8b4b0335ec64991d5db;hp=e98c8ca616a842fa5aa782ea2016681d2bb4cece;hpb=f419bcb9dcfb6af60fbf1d58d92caf4b3d62a4da;p=musl 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;