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 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
17 /* Maximum values on all known systems */
18 #define MaxHostNameLen (64+4)
19 #define MaxPathLen (1024+4)
24 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"}
26 #define VERSION "Samba"
28 #define ROKEN_LIB_FUNCTION
29 #define ROKEN_LIB_CALL
30 #define GETHOSTBYADDR_PROTO_COMPATIBLE
31 #define GETSERVBYNAME_PROTO_COMPATIBLE
32 #define OPENLOG_PROTO_COMPATIBLE
33 #define GETSOCKNAME_PROTO_COMPATIBLE
35 /* even if we do have dlopen, we don't want heimdal using it */
38 /* we need to tell roken about the functions that Samba replaces in lib/replace */
40 #define HAVE_SETEUID 1
59 #ifndef HAVE_STRCASECMP
60 #define HAVE_STRCASECMP
67 #ifndef HAVE_VASPRINTF
68 #define HAVE_VASPRINTF
103 #ifndef HAVE_INET_ATON
104 #define HAVE_INET_ATON
107 #ifndef HAVE_INET_NTOP
108 #define HAVE_INET_NTOP
111 #ifndef HAVE_INET_PTON
112 #define HAVE_INET_PTON
115 #ifndef HAVE_GETTIMEOFDAY
116 #define HAVE_GETTIMEOFDAY
127 /* force the use of the libreplace strerror_r */
128 #ifndef HAVE_STRERROR_R
129 #define HAVE_STRERROR_R
131 #ifndef STRERROR_R_PROTO_COMPATIBLE
132 #define STRERROR_R_PROTO_COMPATIBLE
136 #ifdef HAVE_DIR_DD_FD
137 #define dirfd(x) ((x)->dd_fd)
139 #define dirfd(d) (-1)
145 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
146 in the parts of heimdal we use actually uses pidfile(), and we
147 don't use it in Samba, so this works, although its ugly */
152 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
153 #ifndef HAVE___ATTRIBUTE__
154 #define HAVE___ATTRIBUTE__
158 #include "system/network.h"
161 * we don't want that roken.h.in includes socket_wrapper
162 * we include socket_wrapper via "system/network.h"
164 #undef SOCKET_WRAPPER_REPLACE
165 #include "heimdal/lib/roken/roken.h.in"
167 extern const char *heimdal_version;
168 extern const char *heimdal_long_version;
170 /* we do not want any __APPLE__ magic */