r9323: * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
[clsql.git] / db-postgresql-socket / postgresql-socket-api.lisp
index 69496c27b33369622dd9c893515a4f88f2c84334..620140ee718c0872aab75515bba8a0db4a2ad699 100644 (file)
@@ -220,13 +220,14 @@ socket interface"
   (unless *crypt-library-loaded*
     (uffi:load-foreign-library 
      (uffi:find-foreign-library "libcrypt"
-                          '("/usr/lib/" "/usr/local/lib/" "/lib/"))
+                          '(#+64bit "/usr/lib64/"
+                            "/usr/lib/" "/usr/local/lib/" "/lib/"))
      :supporting-libraries '("c"))
     (setq *crypt-library-loaded* t)))
 
 (in-package :postgresql-socket)
 
-(uffi:def-function "crypt" 
+(uffi:def-function ("crypt" crypt)
     ((key :cstring)
      (salt :cstring))
   :returning :cstring)