libdl: Fix dlerror return type

POSIX specifies char *, not const char *

Updates #2747
This commit is contained in:
Patrick Gauvin
2016-06-26 12:54:34 -04:00
committed by Chris Johns
parent a346408e4e
commit dc746b50ca
2 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ dlsym (void* handle, const char *symbol)
return symval;
}
const char*
char*
dlerror (void)
{
static char msg[64];

View File

@@ -56,7 +56,7 @@ int dladdr(void * __restrict, Dl_info * __restrict);
int dlctl(void *, int, void *);
#endif
int dlinfo(void *, int, void *);
const char *dlerror(void);
char *dlerror(void);
__END_DECLS
/* Values for dlopen `mode'. */