r19681: Update to current lorikeet-heimdal. I'm looking at using the realm
[Samba.git] / source / heimdal_build / roken.h
blob465563bda58e6fc1c2684f6981293a15b91b9e39
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_
7 /* path to sysconf - should we force this to samba LIBDIR ? */
8 #define SYSCONFDIR "/etc"
10 /* HDB module dir - set to Samba LIBDIR/hdb ? */
11 #define HDBDIR "/usr/heimdal/lib"
12 #define LIBDIR "/usr/heimdal/lib"
14 /* Maximum values on all known systems */
15 #define MaxHostNameLen (64+4)
16 #define MaxPathLen (1024+4)
18 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
20 #define VERSION "Samba"
22 #define ROKEN_LIB_FUNCTION
24 #define GETHOSTBYADDR_PROTO_COMPATIBLE
25 #define GETSERVBYNAME_PROTO_COMPATIBLE
26 #define OPENLOG_PROTO_COMPATIBLE
27 #define GETSOCKNAME_PROTO_COMPATIBLE
29 /* even if we do have dlopen, we don't want heimdal using it */
30 #undef HAVE_DLOPEN
32 /* we need to tell roken about the functions that Samba replaces in lib/replace */
33 #ifndef HAVE_SETEUID
34 #define HAVE_SETEUID 1
35 #endif
37 #ifndef HAVE_STRNDUP
38 #define HAVE_STRNDUP
39 #endif
41 #ifndef HAVE_VSYSLOG
42 #define HAVE_VSYSLOG
43 #endif
45 #ifndef HAVE_SOCKLEN_T
46 #define HAVE_SOCKLEN_T
47 #endif
49 #ifndef HAVE_SSIZE_T
50 #define HAVE_SSIZE_T
51 #endif
53 #ifndef HAVE_TIMEGM
54 #define HAVE_TIMEGM
55 #endif
57 #undef SOCKET_WRAPPER_REPLACE
59 #include "heimdal/lib/roken/roken.h.in"
60 #endif