Commit 2b52b76b authored by jochemberndsen@dse.nl's avatar jochemberndsen@dse.nl

FIX BUILD addDLL returns const char*

addDLL returns const char*, not just a char*.
Fix compiler warning
parent 3063e93f
......@@ -31,7 +31,7 @@ HsInt loadObj( char *path );
HsInt resolveObjs( void );
/* load a dynamic library */
char *addDLL( char* dll_name );
const char *addDLL( char* dll_name );
extern void markRootPtrTable(void (*)(StgClosure **));
......
......@@ -946,13 +946,13 @@ typedef
static OpenedDLL* opened_dlls = NULL;
#endif
char *
const char *
addDLL( char *dll_name )
{
# if defined(OBJFORMAT_ELF) || defined(OBJFORMAT_MACHO)
/* ------------------- ELF DLL loader ------------------- */
void *hdl;
char *errmsg;
const char *errmsg;
initLinker();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment