Remove building with NOCRYPTO option
[minix3.git] / lib / libc / compat / db / hash / compat_ndbmdatum.c
bloba238834fe9d1c71a0faf6b27f731c7fa0ea0db53
1 /* $NetBSD: compat_ndbmdatum.c,v 1.2 2012/03/13 21:13:31 christos Exp $ */
3 /*
4 * Written by Klaus Klein <kleink@NetBSD.org>, April 28, 2004.
5 * Public domain.
6 */
8 #define __LIBC12_SOURCE__
9 #include "namespace.h"
10 #include <sys/cdefs.h>
11 #include <ndbm.h>
12 #include <compat/include/ndbm.h>
14 __warn_references(dbm_delete,
15 "warning: reference to compatibility dbm_delete();"
16 " include <ndbm.h> for correct reference")
17 __warn_references(dbm_fetch,
18 "warning: reference to compatibility dbm_fetch();"
19 " include <ndbm.h> for correct reference")
20 __warn_references(dbm_firstkey,
21 "warning: reference to compatibility dbm_firstkey();"
22 " include <ndbm.h> for correct reference")
23 __warn_references(dbm_nextkey,
24 "warning: reference to compatibility dbm_nextkey();"
25 " include <ndbm.h> for correct reference")
26 __warn_references(dbm_store,
27 "warning: reference to compatibility dbm_store();"
28 " include <ndbm.h> for correct reference")
30 #define datum datum12
31 #define datum_truncate(a) ((a) > INT_MAX ? INT_MAX : (int)(a))
33 #include "db/hash/ndbmdatum.c"