summaryrefslogtreecommitdiff
path: root/src/lib/libast/features/ndbm
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libast/features/ndbm')
-rw-r--r--src/lib/libast/features/ndbm29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/libast/features/ndbm b/src/lib/libast/features/ndbm
new file mode 100644
index 0000000..d12d15c
--- /dev/null
+++ b/src/lib/libast/features/ndbm
@@ -0,0 +1,29 @@
+if tst -ldb note{ sleepycat ndbm compatibility }end link{
+ #define DB_DBM_HSEARCH 1
+ #include <db.h>
+ int main()
+ {
+ DBM* dbm = 0;
+ dbm_close(dbm);
+ return 0;
+ }
+ }end {
+ #ifndef DB_DBM_HSEARCH
+ #define DB_DBM_HSEARCH 1
+ #include <db.h>
+ #endif
+ #define _use_ndbm 1
+ }
+elif hdr gdbm-ndbm {
+ #include <gdbm-ndbm.h>
+ #define _use_ndbm 1
+}
+elif hdr gdbm/ndbm {
+ #include <gdbm/ndbm.h>
+ #define _use_ndbm 1
+}
+elif hdr ndbm {
+ #include <ndbm.h>
+ #define _use_ndbm 1
+}
+endif