don't close runtime dlhandle on Darwin
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 7 Oct 2012 12:20:21 +0000 (15:20 +0300)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 7 Oct 2012 12:23:19 +0000 (15:23 +0300)
  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

index 4e42440..dae3126 100644 (file)
@@ -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))