X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fdlfcn.h;h=46c4e18555710eae3dde6fdc9f87f407cc0dc071;hp=2e7d0283c237bf3e955581bd339d675983bab53e;hb=231b9d1880bf686c0db918cea16c355f2d6598fc;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347 diff --git a/include/dlfcn.h b/include/dlfcn.h index 2e7d0283..46c4e185 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -5,11 +5,7 @@ extern "C" { #endif -#if __STDC_VERSION__ >= 199901L -#define __restrict restrict -#elif !defined(__GNUC__) -#define __restrict -#endif +#include #define RTLD_LAZY 1 #define RTLD_NOW 2 @@ -24,7 +20,7 @@ char *dlerror(void); void *dlopen(const char *, int); 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;