summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-12-25 04:01:30 +0000
committerWez Furlong <wez@php.net>2004-12-25 04:01:30 +0000
commitc8b2f43005c977fa52e889e835dfcde445751a1a (patch)
tree31e74f03e54a393c553bc9a4ff2c2a06309a8490
parent843807c6470866cec3b02973cb1e2aeec190dda0 (diff)
downloadphp-git-c8b2f43005c977fa52e889e835dfcde445751a1a.tar.gz
fix build issues
-rw-r--r--ext/pdo_sqlite/config.m44
-rw-r--r--ext/pdo_sqlite/sqlite_driver.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo_sqlite/config.m4 b/ext/pdo_sqlite/config.m4
index ce723c0e3e..fe5ef497b9 100644
--- a/ext/pdo_sqlite/config.m4
+++ b/ext/pdo_sqlite/config.m4
@@ -5,7 +5,7 @@ PHP_ARG_WITH(pdo-sqlite, for sqlite 3 driver for PDO,
[ --with-pdo-sqlite Include PDO sqlite 3 support])
if test "$PHP_PDO_SQLITE" != "no"; then
- SEARCH_PATH="/usr/local /usr" # you might want to change this
+ SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this
SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this
if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
PDO_SQLITE_DIR=$PHP_PDO_SQLITE
@@ -35,7 +35,7 @@ if test "$PHP_PDO_SQLITE" != "no"; then
],[
AC_MSG_ERROR([wrong sqlite lib version or lib not found])
],[
- -L$PDO_SQLITE_DIR/lib -lm -ldl
+ -L$PDO_SQLITE_DIR/lib -lm
])
PHP_SUBST(PDO_SQLITE_SHARED_LIBADD)
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c
index ca73ac8b54..7be1dab798 100644
--- a/ext/pdo_sqlite/sqlite_driver.c
+++ b/ext/pdo_sqlite/sqlite_driver.c
@@ -327,7 +327,7 @@ static int pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS
if (driver_options) {
timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout TSRMLS_CC);
}
- sqlite_busy_timeout(H->db, timeout * 1000);
+ sqlite3_busy_timeout(H->db, timeout * 1000);
dbh->alloc_own_columns = 1;
dbh->supports_placeholders = PDO_PLACEHOLDER_POSITIONAL;