r19624: we have timegm in libreplace so heimdal should not replace it
[kai/samba-autobuild/.git] / source4 / heimdal_build / roken.h
1 /*
2   a wrapper to override some of the defines that the heimdal roken system looks at
3  */
4 #ifndef _ROKEN_H_
5 #define _ROKEN_H_
6
7 /* path to sysconf - should we force this to samba LIBDIR ? */
8 #define SYSCONFDIR "/etc"
9
10 /* HDB module dir - set to Samba LIBDIR/hdb ? */
11 #define HDBDIR "/usr/heimdal/lib"
12
13 /* Maximum values on all known systems */
14 #define MaxHostNameLen (64+4)
15 #define MaxPathLen (1024+4)
16
17 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
18
19 #define VERSION "Samba"
20
21 #define ROKEN_LIB_FUNCTION
22
23 #define GETHOSTBYADDR_PROTO_COMPATIBLE
24 #define GETSERVBYNAME_PROTO_COMPATIBLE
25 #define OPENLOG_PROTO_COMPATIBLE
26 #define GETSOCKNAME_PROTO_COMPATIBLE
27
28 /* even if we do have dlopen, we don't want heimdal using it */
29 #undef HAVE_DLOPEN
30
31 /* we need to tell roken about the functions that Samba replaces in lib/replace */
32 #ifndef HAVE_SETEUID
33 #define HAVE_SETEUID 1
34 #endif
35
36 #ifndef HAVE_STRNDUP
37 #define HAVE_STRNDUP
38 #endif
39
40 #ifndef HAVE_VSYSLOG
41 #define HAVE_VSYSLOG
42 #endif
43
44 #ifndef HAVE_SOCKLEN_T
45 #define HAVE_SOCKLEN_T
46 #endif
47
48 #ifndef HAVE_SSIZE_T
49 #define HAVE_SSIZE_T
50 #endif
51
52 #ifndef HAVE_TIMEGM
53 #define HAVE_TIMEGM
54 #endif
55
56 #undef SOCKET_WRAPPER_REPLACE
57
58 #include "heimdal/lib/roken/roken.h.in"
59 #endif