From: Michael Wallner Date: Tue, 26 Jan 2016 07:40:26 +0000 (+0100) Subject: missing m4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4894ee9055330ed9b001967112c5363ba91042ca;p=m6w6%2Fext-psi missing m4 --- diff --git a/m4/ndbm.m4 b/m4/ndbm.m4 new file mode 100644 index 0000000..1005722 --- /dev/null +++ b/m4/ndbm.m4 @@ -0,0 +1,25 @@ +PSI_CHECK_NDBM() { + AC_CHECK_HEADERS(ndbm.h) + + PHP_CHECK_FUNC_LIB(dbm_open, gdbm_compat) + + PSI_STRUCT(datum, [ + void *dptr, + int dsize] + ) + + PSI_OPAQUE_TYPE(DBM) + + PSI_CONST(DBM_INSERT, int) + PSI_CONST(DBM_REPLACE, int) + + PSI_DECL(void dbm_clearerr, [(DBM *db)]) + PSI_DECL(void dbm_close, [(DBM *db)]) + PSI_DECL(int dbm_delete, [(DBM *db, datum key)]) + PSI_DECL(int dbm_error, [(DBM *db)]) + PSI_DECL(datum dbm_fetch, [(DBM *db, datum key)]) + PSI_DECL(datum dbm_firstkey, [(DBM *db)]) + PSI_DECL(datum dbm_nextkey, [(DBM *db)]) + PSI_DECL(DBM *dbm_open, [(char *file, int open_flags, mode_t file_mode)]) + PSI_DECL(int dbm_store, [(DBM *db, datum key, datum content, int store_mode)]) +} \ No newline at end of file