mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Check for db1/ndbm.h and use it in db. Fixes #2647
This commit is contained in:
parent
25c56d15cd
commit
13582b4fe2
2 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,8 @@ dnl don't forget to call PHP_EXTENSION(db)
|
|||
|
||||
divert(1)
|
||||
|
||||
AC_CHECK_HEADERS(db1/ndbm.h)
|
||||
|
||||
# Checks for libraries.
|
||||
# Prefer gdbm, Berkeley DB and ndbm/dbm, in that order
|
||||
AC_DEFUN(AC_PREFERRED_DB_LIB,[
|
||||
|
|
|
@ -79,8 +79,12 @@
|
|||
#define DB_DBM_HSEARCH 1
|
||||
#include <db.h>
|
||||
#else
|
||||
#ifdef HAVE_DB1_NDBM_H
|
||||
#include <db1/ndbm.h>
|
||||
#else
|
||||
#include <ndbm.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define DBM_TYPE DBM *
|
||||
#define DBM_MODE_TYPE int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue