s4-waf: don't generate PACKAGE_* defines in config.h
[Samba.git] / source4 / heimdal_build / roken.h
blob10d085cbd9a1fbb724c80ddcef3b9f5536432235
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 /* 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)
21 /* We want PKINIT */
22 #define PKINIT 1
24 #define ROKEN_LIB_FUNCTION
25 #define ROKEN_LIB_CALL
26 #define GETHOSTBYADDR_PROTO_COMPATIBLE
27 #define GETSERVBYNAME_PROTO_COMPATIBLE
28 #define OPENLOG_PROTO_COMPATIBLE
29 #define GETSOCKNAME_PROTO_COMPATIBLE
31 /* even if we do have dlopen, we don't want heimdal using it */
32 #undef HAVE_DLOPEN
34 /* we need to tell roken about the functions that Samba replaces in lib/replace */
35 #ifndef HAVE_SETEUID
36 #define HAVE_SETEUID 1
37 #endif
39 #ifndef HAVE_STRNLEN
40 #define HAVE_STRNLEN
41 #endif
43 #ifndef HAVE_STRNDUP
44 #define HAVE_STRNDUP
45 #endif
47 #ifndef HAVE_STRLCPY
48 #define HAVE_STRLCPY
49 #endif
51 #ifndef HAVE_STRLCAT
52 #define HAVE_STRLCAT
53 #endif
55 #ifndef HAVE_STRCASECMP
56 #define HAVE_STRCASECMP
57 #endif
59 #ifndef HAVE_ASPRINTF
60 #define HAVE_ASPRINTF
61 #endif
63 #ifndef HAVE_VASPRINTF
64 #define HAVE_VASPRINTF
65 #endif
67 #ifndef HAVE_MKSTEMP
68 #define HAVE_MKSTEMP
69 #endif
71 #ifndef HAVE_SETENV
72 #define HAVE_SETENV
73 #endif
75 #ifndef HAVE_UNSETENV
76 #define HAVE_UNSETENV
77 #endif
79 #ifndef HAVE_VSYSLOG
80 #define HAVE_VSYSLOG
81 #endif
83 #ifndef HAVE_SSIZE_T
84 #define HAVE_SSIZE_T
85 #endif
87 #ifndef HAVE_STRPTIME
88 #define HAVE_STRPTIME
89 #endif
91 #ifndef HAVE_TIMEGM
92 #define HAVE_TIMEGM
93 #endif
95 #ifndef HAVE_INNETGR
96 #define HAVE_INNETGR
97 #endif
99 #ifndef HAVE_INET_ATON
100 #define HAVE_INET_ATON
101 #endif
103 #ifndef HAVE_INET_NTOP
104 #define HAVE_INET_NTOP
105 #endif
107 #ifndef HAVE_INET_PTON
108 #define HAVE_INET_PTON
109 #endif
111 #ifndef HAVE_GETTIMEOFDAY
112 #define HAVE_GETTIMEOFDAY
113 #endif
115 #ifndef HAVE_SETEGID
116 #define HAVE_SETEGID
117 #endif
119 #ifndef HAVE_SETEUID
120 #define HAVE_SETEUID
121 #endif
123 /* force the use of the libreplace strerror_r */
124 #ifndef HAVE_STRERROR_R
125 #define HAVE_STRERROR_R
126 #endif
127 #ifndef STRERROR_R_PROTO_COMPATIBLE
128 #define STRERROR_R_PROTO_COMPATIBLE
129 #endif
131 #ifndef HAVE_DIRFD
132 #ifdef HAVE_DIR_DD_FD
133 #define dirfd(x) ((x)->dd_fd)
134 #else
135 #define dirfd(d) (-1)
136 #endif
137 #define HAVE_DIRFD 1
138 #endif
141 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
142 in the parts of heimdal we use actually uses pidfile(), and we
143 don't use it in Samba, so this works, although its ugly */
144 #ifndef HAVE_PIDFILE
145 #define HAVE_PIDFILE
146 #endif
148 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
149 #ifndef HAVE___ATTRIBUTE__
150 #define HAVE___ATTRIBUTE__
151 #endif
152 #endif
154 #include "system/network.h"
157 * we don't want that roken.h.in includes socket_wrapper
158 * we include socket_wrapper via "system/network.h"
160 #undef SOCKET_WRAPPER_REPLACE
161 #include "heimdal/lib/roken/roken.h.in"
163 extern const char *heimdal_version;
164 extern const char *heimdal_long_version;
166 /* we do not want any __APPLE__ magic */
167 #ifdef __APPLE__
168 #undef __APPLE__
169 #endif
171 #endif