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 LIBDIR "/usr/heimdal/lib"
18 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
20 /* Maximum values on all known systems */
21 #define MaxHostNameLen (64+4)
22 #define MaxPathLen (1024+4)
27 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
29 #define VERSION "Samba"
31 #define ROKEN_LIB_FUNCTION
32 #define ROKEN_LIB_CALL
33 #define GETHOSTBYADDR_PROTO_COMPATIBLE
34 #define GETSERVBYNAME_PROTO_COMPATIBLE
35 #define OPENLOG_PROTO_COMPATIBLE
36 #define GETSOCKNAME_PROTO_COMPATIBLE
38 /* even if we do have dlopen, we don't want heimdal using it */
41 /* we need to tell roken about the functions that Samba replaces in lib/replace */
43 #define HAVE_SETEUID 1
62 #ifndef HAVE_STRCASECMP
63 #define HAVE_STRCASECMP
70 #ifndef HAVE_VASPRINTF
71 #define HAVE_VASPRINTF
106 #ifndef HAVE_INET_ATON
107 #define HAVE_INET_ATON
110 #ifndef HAVE_INET_NTOP
111 #define HAVE_INET_NTOP
114 #ifndef HAVE_INET_PTON
115 #define HAVE_INET_PTON
118 #ifndef HAVE_GETTIMEOFDAY
119 #define HAVE_GETTIMEOFDAY
121 #define gettimeofday(a,b) GetTimeOfDay(a)
131 /* force the use of the libreplace strerror_r */
132 #ifndef HAVE_STRERROR_R
133 #define HAVE_STRERROR_R
135 #ifndef STRERROR_R_PROTO_COMPATIBLE
136 #define STRERROR_R_PROTO_COMPATIBLE
140 #ifdef HAVE_DIR_DD_FD
141 #define dirfd(x) ((x)->dd_fd)
143 #define dirfd(d) (-1)
149 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
150 in the parts of heimdal we use actually uses pidfile(), and we
151 don't use it in Samba, so this works, although its ugly */
156 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
157 #ifndef HAVE___ATTRIBUTE__
158 #define HAVE___ATTRIBUTE__
162 #include "system/network.h"
165 * we don't want that roken.h.in includes socket_wrapper
166 * we include socket_wrapper via "system/network.h"
168 #undef SOCKET_WRAPPER_REPLACE
169 #include "heimdal/lib/roken/roken.h.in"
171 extern const char *heimdal_version;
172 extern const char *heimdal_long_version;
174 /* we do not want any __APPLE__ magic */