From c712f88b26cd7547ee984b90e18c134401335bc3 Mon Sep 17 00:00:00 2001 From: Nikodemus Siivola Date: Sun, 7 Oct 2012 15:20:21 +0300 Subject: [PATCH] don't close runtime dlhandle on Darwin On newish Darwin it works, but some people still run old enough version that it won't work. As long as we're not explicitly checking for "Darwin new enough?", let's try not to break... Fixes lp#957385 --- src/code/unix-foreign-load.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/code/unix-foreign-load.lisp b/src/code/unix-foreign-load.lisp index 4e42440..dae3126 100644 --- a/src/code/unix-foreign-load.lisp +++ b/src/code/unix-foreign-load.lisp @@ -46,9 +46,9 @@ (dlerror) (let (dlerror) (cond ((and (not objp) *runtime-dlhandle*) - ;; CLH: if we're on darwin/ppc we can't close + ;; CLH/NS: if we're on sufficiently old darwin we can't close ;; *runtime-dlhandle* for some reason, so don't. - #!-(and darwin ppc) + #!-darwin (dlclose *runtime-dlhandle*) (setf dlerror (dlerror) *runtime-dlhandle* nil)) -- 1.7.10.4