inline char* os::dlerror(void)
{
#if defined(HAVE_DLERROR)
- return ::dlerror();
+ // At least FreeBSD defines dlerror() to return a const char*, so
+ // we simply cast it.
+ return (char*) ::dlerror();
#else
# error dlerror not available
#endif
int os_atoi(const char* nptr);
void* os_calloc(size_t nmemb, size_t size);
char* os_dirname(char* path);
-int os_dlclose(void* handle);
char* os_dlerror(void);
-void* os_dlopen(const char* filename, int flag);
void* os_dlsym(void* handle, const char* symbol);
int os_fclose(FILE* fp);
FILE* os_fopen(const char* path, const char* mode);