New upstream and debian-specific file updates
[kmrcl.git] / impl.lisp
index 52193ab12880360d0e638fa16c7b266c2327b7f6..762d27ffafddeeba3baf772707a3bf3c577f6121 100644 (file)
--- a/impl.lisp
+++ b/impl.lisp
                            path)
           #+lispworks (when (lw:file-directory-p path)
                         path)
-          #+sbcl (when (eq :directory
-                           (sb-unix:unix-file-kind (namestring path)))
-                   path)
+          #+sbcl
+          (let ((file-kind-fun
+                 (or (find-symbol "NATIVE-FILE-KIND" :sb-impl)
+                     (find-symbol "UNIX-FILE-KIND" :sb-unix))))
+            (when (eq :directory (funcall file-kind-fun (namestring path)))
+              path))
           #-(or allegro clisp cmu lispworks sbcl scl)
           (probe-file path)))
     (if probe