From 24c502cbc7a0a35cea436ac596529fe24ca27f35 Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Wed, 11 Sep 2002 05:04:06 +0000 Subject: [PATCH] Conditionalize some objects to match the functions that they are used with. Enable `restrict' type-qualifier. --- include/dlfcn.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/dlfcn.h b/include/dlfcn.h index 95bd370662dd..27aee907cd20 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -54,6 +54,7 @@ #define RTLD_NEXT ((void *) -1) /* Search subsequent objects. */ #define RTLD_DEFAULT ((void *) -2) /* Use default search algorithm. */ +#if __BSD_VISIBLE /* * Structure filled in by dladdr(). */ @@ -79,17 +80,19 @@ struct __dlfunc_arg { typedef void (*dlfunc_t)(struct __dlfunc_arg); +#endif /* __BSD_VISIBLE */ + __BEGIN_DECLS /* XSI functions first. */ int dlclose(void *); const char * dlerror(void); void *dlopen(const char *, int); -void *dlsym(void * /* __restrict */, const char * /* __restrict */); +void *dlsym(void * __restrict, const char * __restrict); #if __BSD_VISIBLE int dladdr(const void *, Dl_info *); -dlfunc_t dlfunc(void * /* __restrict */, const char * /* __restrict */); +dlfunc_t dlfunc(void * __restrict, const char * __restrict); void dllockinit(void *_context, void *(*_lock_create)(void *_context), void (*_rlock_acquire)(void *_lock),