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_ 6 7/* path to sysconf - should we force this to samba LIBDIR ? */ 8#define SYSCONFDIR "/etc" 9 10/* HDB module dir - set to Samba LIBDIR/hdb ? */ 11#define HDBDIR "/usr/heimdal/lib" 12#define LIBDIR "/usr/heimdal/lib" 13#define HEIMDAL_LOCALEDIR "/usr/heimdal/locale" 14 15/* Maximum values on all known systems */ 16#define MaxHostNameLen (64+4) 17#define MaxPathLen (1024+4) 18 19/* We want PKINIT */ 20#define PKINIT 1 21 22#define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"} 23 24#define VERSION "Samba" 25 26#define ROKEN_LIB_FUNCTION 27 28#define GETHOSTBYADDR_PROTO_COMPATIBLE 29#define GETSERVBYNAME_PROTO_COMPATIBLE 30#define OPENLOG_PROTO_COMPATIBLE 31#define GETSOCKNAME_PROTO_COMPATIBLE 32 33/* even if we do have dlopen, we don't want heimdal using it */ 34#undef HAVE_DLOPEN 35 36/* we need to tell roken about the functions that Samba replaces in lib/replace */ 37#ifndef HAVE_SETEUID 38#define HAVE_SETEUID 1 39#endif 40 41#ifndef HAVE_STRNLEN 42#define HAVE_STRNLEN 43#endif 44 45#ifndef HAVE_STRNDUP 46#define HAVE_STRNDUP 47#endif 48 49#ifndef HAVE_STRLCPY 50#define HAVE_STRLCPY 51#endif 52 53#ifndef HAVE_STRLCAT 54#define HAVE_STRLCAT 55#endif 56 57#ifndef HAVE_STRCASECMP 58#define HAVE_STRCASECMP 59#endif 60 61#ifndef HAVE_ASPRINTF 62#define HAVE_ASPRINTF 63#endif 64 65#ifndef HAVE_VASPRINTF 66#define HAVE_VASPRINTF 67#endif 68 69#ifndef HAVE_MKSTEMP 70#define HAVE_MKSTEMP 71#endif 72 73#ifndef HAVE_SETENV 74#define HAVE_SETENV 75#endif 76 77#ifndef HAVE_UNSETENV 78#define HAVE_UNSETENV 79#endif 80 81#ifndef HAVE_VSYSLOG 82#define HAVE_VSYSLOG 83#endif 84 85#ifndef HAVE_SSIZE_T 86#define HAVE_SSIZE_T 87#endif 88 89#ifndef HAVE_STRPTIME 90#define HAVE_STRPTIME 91#endif 92 93#ifndef HAVE_TIMEGM 94#define HAVE_TIMEGM 95#endif 96 97#ifndef HAVE_INNETGR 98#define HAVE_INNETGR 99#endif 100 101#ifndef HAVE_INET_ATON 102#define HAVE_INET_ATON 103#endif 104 105/* we lie about having pidfile() so that NetBSD5 can compile. Nothing 106 in the parts of heimdal we use actually uses pidfile(), and we 107 don't use it in Samba, so this works, although its ugly */ 108#ifndef HAVE_PIDFILE 109#define HAVE_PIDFILE 110#endif 111 112#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) 113#ifndef HAVE___ATTRIBUTE__ 114#define HAVE___ATTRIBUTE__ 115#endif 116#endif 117 118#include "system/network.h" 119 120/* 121 * we don't want that roken.h.in includes socket_wrapper 122 * we include socket_wrapper via "system/network.h" 123 */ 124#undef SOCKET_WRAPPER_REPLACE 125#include "heimdal/lib/roken/roken.h.in" 126 127extern const char *heimdal_version; 128extern const char *heimdal_long_version; 129 130#endif 131