From 04e741db0c35f396b59d6da83aafce06b4ca76b1 Mon Sep 17 00:00:00 2001 From: dons Date: Sun, 2 Nov 2003 06:55:24 +0000 Subject: [PATCH] [project @ 2003-11-02 06:55:24 by dons] More RTLD_* symbols are now available on OpenBSD. This does not mean that ghci works yet, though. --- ghc/rts/Linker.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ghc/rts/Linker.c b/ghc/rts/Linker.c index 73f69e2..6fe9310 100644 --- a/ghc/rts/Linker.c +++ b/ghc/rts/Linker.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Linker.c,v 1.138 2003/10/29 16:12:00 wolfgang Exp $ + * $Id: Linker.c,v 1.139 2003/11/02 06:55:24 dons Exp $ * * (c) The GHC Team, 2000-2003 * @@ -744,11 +744,8 @@ addDLL( char *dll_name ) initLinker(); -#if !defined(openbsd_TARGET_OS) hdl= dlopen(dll_name, RTLD_NOW | RTLD_GLOBAL); -#else - hdl= dlopen(dll_name, RTLD_LAZY); -#endif + if (hdl == NULL) { /* dlopen failed; return a ptr to the error msg. */ errmsg = dlerror(); -- 1.7.10.4