2 a wrapper to override some of the defines that the heimdal roken system looks at
7 /* Support 'weak' keys for now, it can't be worse than NTLM and we don't want to hard-code the behaviour at this point */
8 #define HEIM_WEAK_CRYPTO 1
10 /* path to sysconf - should we force this to samba LIBDIR ? */
11 #define SYSCONFDIR "/etc"
13 #define rk_PATH_DELIM '/'
15 /* HDB module dir - set to Samba LIBDIR/hdb ? */
16 #define HDBDIR "/usr/heimdal/lib"
17 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
19 /* Maximum values on all known systems */
20 #define MaxHostNameLen (64+4)
21 #define MaxPathLen (1024+4)
26 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"}
28 #define VERSION "Samba"
30 #define ROKEN_LIB_FUNCTION
31 #define ROKEN_LIB_CALL
32 #define GETHOSTBYADDR_PROTO_COMPATIBLE
33 #define GETSERVBYNAME_PROTO_COMPATIBLE
34 #define OPENLOG_PROTO_COMPATIBLE
35 #define GETSOCKNAME_PROTO_COMPATIBLE
37 /* even if we do have dlopen, we don't want heimdal using it */
40 /* we need to tell roken about the functions that Samba replaces in lib/replace */
42 #define HAVE_SETEUID 1
61 #ifndef HAVE_STRCASECMP
62 #define HAVE_STRCASECMP
69 #ifndef HAVE_VASPRINTF
70 #define HAVE_VASPRINTF
105 #ifndef HAVE_INET_ATON
106 #define HAVE_INET_ATON
109 #ifndef HAVE_INET_NTOP
110 #define HAVE_INET_NTOP
113 #ifndef HAVE_INET_PTON
114 #define HAVE_INET_PTON
117 #ifndef HAVE_GETTIMEOFDAY
118 #define HAVE_GETTIMEOFDAY
129 /* force the use of the libreplace strerror_r */
130 #ifndef HAVE_STRERROR_R
131 #define HAVE_STRERROR_R
133 #ifndef STRERROR_R_PROTO_COMPATIBLE
134 #define STRERROR_R_PROTO_COMPATIBLE
138 #ifdef HAVE_DIR_DD_FD
139 #define dirfd(x) ((x)->dd_fd)
141 #define dirfd(d) (-1)
147 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
148 in the parts of heimdal we use actually uses pidfile(), and we
149 don't use it in Samba, so this works, although its ugly */
154 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
155 #ifndef HAVE___ATTRIBUTE__
156 #define HAVE___ATTRIBUTE__
160 #include "system/network.h"
163 * we don't want that roken.h.in includes socket_wrapper
164 * we include socket_wrapper via "system/network.h"
166 #undef SOCKET_WRAPPER_REPLACE
167 #include "heimdal/lib/roken/roken.h.in"
169 extern const char *heimdal_version;
170 extern const char *heimdal_long_version;
172 /* we do not want any __APPLE__ magic */