1*7c2fbfb3SApril Chinif tst -ldb note{ sleepycat ndbm compatibility }end link{ 2*7c2fbfb3SApril Chin #define DB_DBM_HSEARCH 1 3*7c2fbfb3SApril Chin #include <db.h> 4*7c2fbfb3SApril Chin int main() 5*7c2fbfb3SApril Chin { 6*7c2fbfb3SApril Chin DBM* dbm = 0; 7*7c2fbfb3SApril Chin dbm_close(dbm); 8*7c2fbfb3SApril Chin return 0; 9*7c2fbfb3SApril Chin } 10*7c2fbfb3SApril Chin }end { 11*7c2fbfb3SApril Chin #ifndef DB_DBM_HSEARCH 12*7c2fbfb3SApril Chin #define DB_DBM_HSEARCH 1 13*7c2fbfb3SApril Chin #include <db.h> 14*7c2fbfb3SApril Chin #endif 15*7c2fbfb3SApril Chin #define _use_ndbm 1 16*7c2fbfb3SApril Chin } 17*7c2fbfb3SApril Chinelif hdr gdbm-ndbm { 18*7c2fbfb3SApril Chin #include <gdbm-ndbm.h> 19*7c2fbfb3SApril Chin #define _use_ndbm 1 20*7c2fbfb3SApril Chin} 21*7c2fbfb3SApril Chinelif hdr gdbm/ndbm { 22*7c2fbfb3SApril Chin #include <gdbm/ndbm.h> 23*7c2fbfb3SApril Chin #define _use_ndbm 1 24*7c2fbfb3SApril Chin} 25*7c2fbfb3SApril Chinelif hdr ndbm { 26*7c2fbfb3SApril Chin #include <ndbm.h> 27*7c2fbfb3SApril Chin #define _use_ndbm 1 28*7c2fbfb3SApril Chin} 29*7c2fbfb3SApril Chinendif 30