Fix postgresql.libpq for recent factor changes

db4
Chris Double 2008-01-17 11:17:20 +13:00
parent 6d41230f19
commit cd64a7bbee
1 changed files with 7 additions and 8 deletions

View File

@ -8,14 +8,13 @@
USING: alien alien.syntax combinators system ;
IN: postgresql.libpq
: load-postgresql-library ( -- )
"postgresql" {
{ [ win32? ] [ "libpq.dll" ] }
{ [ macosx? ] [ "/opt/local/lib/postgresql81/libpq.dylib" ] }
{ [ unix? ] [ "libpq.so" ] }
} cond "cdecl" add-library ; parsing
load-postgresql-library
<<
"postgresql" {
{ [ win32? ] [ "libpq.dll" ] }
{ [ macosx? ] [ "/opt/local/lib/postgresql81/libpq.dylib" ] }
{ [ unix? ] [ "libpq.so" ] }
} cond "cdecl" add-library
>>
! ConnSatusType
: CONNECTION_OK HEX: 0 ; inline