Index: src/db-bdb/sleepycat.lisp
===================================================================
RCS file: /project/elephant/cvsroot/elephant/src/db-bdb/sleepycat.lisp,v
retrieving revision 1.7
diff -u -r1.7 sleepycat.lisp
--- src/db-bdb/sleepycat.lisp	5 Sep 2006 03:23:16 -0000	1.7
+++ src/db-bdb/sleepycat.lisp	17 Sep 2006 07:39:13 -0000
@@ -52,15 +52,15 @@
 (eval-when (:compile-toplevel :load-toplevel)
 
   ;;
-  ;; Under Linux we need pthreads!
+  ;; Load pthreads if specified!
   ;;
 
-  #+linux
-  (unless 
-      (uffi:load-foreign-library 
-       elephant::*sleepycat-pthreads-path*
-       :module "pthread")
-    (error "Couldn't load libpthread!"))
+  (when elephant::*sleepycat-pthreads-path*
+    (unless 
+        (uffi:load-foreign-library 
+         elephant::*sleepycat-pthreads-path*
+         :module "pthread")
+      (error "Couldn't load libpthread!")))
 
   ;; 
   ;; Our interface library requires that the main Berkeley DB library be loaded
