Fix postgresql.libpq for recent factor changes
parent
6d41230f19
commit
cd64a7bbee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue