Add file-size for sbcl
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 23 Feb 2010 17:43:37 +0000 (10:43 -0700)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 23 Feb 2010 17:43:37 +0000 (10:43 -0700)
os.lisp

diff --git a/os.lisp b/os.lisp
index 7b7da44e5fa23adac19e668e0010fff7f192dfea..9714f5f3568cf7c5e2fd897d25e126dfacfb4655 100644 (file)
--- a/os.lisp
+++ b/os.lisp
@@ -156,7 +156,8 @@ returns (VALUES output-string pid)"
   (when (probe-file file)
     #+allegro (let ((stat (excl.osi:stat (namestring file))))
                 (excl.osi:stat-size stat))
-    #-allegro
+    #+sbcl (sb-posix:stat-size (sb-posix:stat file))
+    #-(or allegro sbcl)
     (with-open-file (in file :direction :input)
       (file-length in))))