Quiet a gcc warning and add comment about needing to keep the

handle open.
This commit is contained in:
Todd C. Miller
2012-11-27 10:29:55 -05:00
parent a94e94cf8c
commit dd5d0eada7

View File

@@ -54,10 +54,12 @@ os_init(int argc, char *argv[], char *envp[])
{
/*
* Solaris 11 is unable to load the per-locale shared objects
* without this. This bug was fixed in Solaris 11 Update 1.
* without this. We must keep the handle open for it to work.
* This bug was fixed in Solaris 11 Update 1.
*/
void *handle = dlopen("/usr/lib/locale/common/methods_unicode.so.3",
RTLD_LAZY|RTLD_GLOBAL);
(void)&handle;
return os_init_common(argc, argv, envp);
}