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