Index: lib/libc/gen/dlfcn.c =================================================================== --- lib/libc/gen/dlfcn.c (revision 203107) +++ lib/libc/gen/dlfcn.c (working copy) @@ -34,7 +34,7 @@ #include #include -static const char sorry[] = "Service unavailable"; +static char sorry[] = "Service unavailable"; /* * For ELF, the dynamic linker directly resolves references to its @@ -69,7 +69,7 @@ } #pragma weak dlerror -const char * +char * dlerror(void) { return sorry; Index: libexec/rtld-elf/rtld.c =================================================================== --- libexec/rtld-elf/rtld.c (revision 203107) +++ libexec/rtld-elf/rtld.c (working copy) @@ -1961,7 +1961,7 @@ return 0; } -const char * +char * dlerror(void) { char *msg = error_message; Index: include/dlfcn.h =================================================================== --- include/dlfcn.h (revision 203107) +++ include/dlfcn.h (working copy) @@ -117,8 +117,7 @@ __BEGIN_DECLS /* XSI functions first. */ int dlclose(void *); -const char * - dlerror(void); +char *dlerror(void); void *dlopen(const char *, int); void *dlsym(void * __restrict, const char * __restrict); Index: lib/libc/gen/dlopen.3 =================================================================== --- lib/libc/gen/dlopen.3 (revision 203107) +++ lib/libc/gen/dlopen.3 (working copy) @@ -52,7 +52,7 @@ .Fn dlsym "void * restrict handle" "const char * restrict symbol" .Ft dlfunc_t .Fn dlfunc "void * restrict handle" "const char * restrict symbol" -.Ft const char * +.Ft char * .Fn dlerror "void" .Ft int .Fn dlclose "void *handle"