s3 net: i18n support for net cache
[Samba.git] / source4 / heimdal_build / roken.h
blob87060cff17b274966427e6eb380d3d2aa78bdbe5
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 /* We want PKINIT */
19 #define PKINIT 1
21 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
23 #define VERSION "Samba"
25 #define ROKEN_LIB_FUNCTION
27 #define GETHOSTBYADDR_PROTO_COMPATIBLE
28 #define GETSERVBYNAME_PROTO_COMPATIBLE
29 #define OPENLOG_PROTO_COMPATIBLE
30 #define GETSOCKNAME_PROTO_COMPATIBLE
32 /* even if we do have dlopen, we don't want heimdal using it */
33 #undef HAVE_DLOPEN
35 /* we need to tell roken about the functions that Samba replaces in lib/replace */
36 #ifndef HAVE_SETEUID
37 #define HAVE_SETEUID 1
38 #endif
40 #ifndef HAVE_STRNLEN
41 #define HAVE_STRNLEN
42 #endif
44 #ifndef HAVE_STRNDUP
45 #define HAVE_STRNDUP
46 #endif
48 #ifndef HAVE_STRLCPY
49 #define HAVE_STRLCPY
50 #endif
52 #ifndef HAVE_STRLCAT
53 #define HAVE_STRLCAT
54 #endif
56 #ifndef HAVE_STRCASECMP
57 #define HAVE_STRCASECMP
58 #endif
60 #ifndef HAVE_ASPRINTF
61 #define HAVE_ASPRINTF
62 #endif
64 #ifndef HAVE_VASPRINTF
65 #define HAVE_VASPRINTF
66 #endif
68 #ifndef HAVE_MKSTEMP
69 #define HAVE_MKSTEMP
70 #endif
72 #ifndef HAVE_SETENV
73 #define HAVE_SETENV
74 #endif
76 #ifndef HAVE_UNSETENV
77 #define HAVE_UNSETENV
78 #endif
80 #ifndef HAVE_VSYSLOG
81 #define HAVE_VSYSLOG
82 #endif
84 #ifndef HAVE_SSIZE_T
85 #define HAVE_SSIZE_T
86 #endif
88 #ifndef HAVE_STRPTIME
89 #define HAVE_STRPTIME
90 #endif
92 #ifndef HAVE_TIMEGM
93 #define HAVE_TIMEGM
94 #endif
96 #ifndef HAVE_INNETGR
97 #define HAVE_INNETGR
98 #endif
100 #ifndef HAVE_INET_ATON
101 #define HAVE_INET_ATON
102 #endif
104 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
105 in the parts of heimdal we use actually uses pidfile(), and we
106 don't use it in Samba, so this works, although its ugly */
107 #ifndef HAVE_PIDFILE
108 #define HAVE_PIDFILE
109 #endif
111 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
112 #ifndef HAVE___ATTRIBUTE__
113 #define HAVE___ATTRIBUTE__
114 #endif
115 #endif
117 #include "system/network.h"
120 * we don't want that roken.h.in includes socket_wrapper
121 * we include socket_wrapper via "system/network.h"
123 #undef SOCKET_WRAPPER_REPLACE
124 #include "heimdal/lib/roken/roken.h.in"
126 extern const char *heimdal_version;
127 extern const char *heimdal_long_version;
129 #endif