From 55565d647cf2f0944f9254b319e8e233a5f532d8 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 8 Sep 2008 14:24:14 +0000 Subject: [PATCH] FIX BUILD on non-Windows --- rts/Linker.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rts/Linker.c b/rts/Linker.c index 26d671e..3735a2e 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -1091,16 +1091,17 @@ addDLL( char *dll_name ) opened_dlls = o_dll; return NULL; -# else - barf("addDLL: not implemented on this platform"); -# endif error: stgFree(buf); sysErrorBelch(dll_name); - + /* LoadLibrary failed; return a ptr to the error msg. */ return "addDLL: could not load DLL"; + +# else + barf("addDLL: not implemented on this platform"); +# endif } /* ----------------------------------------------------------------------------- -- 1.7.10.4