Skip to content

Commit

Permalink
libpq versions older than 9.3 do not have lo_lseek64
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Apr 22, 2015
1 parent 4923d23 commit 1ce2206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/pdo_pgsql/pgsql_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static int pgsql_lob_seek(php_stream *stream, zend_off_t offset, int whence,
zend_off_t *newoffset)
{
struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract;
#if ZEND_ENABLE_ZVAL_LONG64
#if HAVE_PG_LO64 && ZEND_ENABLE_ZVAL_LONG64
zend_off_t pos = lo_lseek64(self->conn, self->lfd, offset, whence);
#else
zend_off_t pos = lo_lseek(self->conn, self->lfd, offset, whence);
Expand Down

0 comments on commit 1ce2206

Please sign in to comment.