xref: /titanic_51/usr/src/lib/libast/common/features/ndbm (revision bfed486ad8de8b8ebc6345a8e10accae08bf2f45)
1if	tst -ldb note{ sleepycat ndbm compatibility }end link{
2		#define DB_DBM_HSEARCH	1
3		#include <db.h>
4		int main()
5		{
6			DBM*	dbm = 0;
7			dbm_close(dbm);
8			return 0;
9		}
10	}end {
11		#ifndef DB_DBM_HSEARCH
12		#define DB_DBM_HSEARCH	1
13		#include <db.h>
14		#endif
15		#define _use_ndbm	1
16	}
17elif	hdr gdbm-ndbm {
18	#include <gdbm-ndbm.h>
19	#define _use_ndbm	1
20}
21elif	hdr gdbm/ndbm {
22	#include <gdbm/ndbm.h>
23	#define _use_ndbm	1
24}
25elif	hdr ndbm {
26	#include <ndbm.h>
27	#define _use_ndbm	1
28}
29endif
30