r18549: move gcc version check to libreplace and reorder the tests a bit
[Samba.git] / source / heimdal_build / roken.h
blob00632c78352eb2a0cc008bac3442edb5ff194c3c
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"
13 /* Maximum values on all known systems */
14 #define MaxHostNameLen (64+4)
15 #define MaxPathLen (1024+4)
17 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.7rc1"}
19 #define VERSION "Samba"
21 #define ROKEN_LIB_FUNCTION
23 #define GETHOSTBYADDR_PROTO_COMPATIBLE
24 #define GETSERVBYNAME_PROTO_COMPATIBLE
25 #define OPENLOG_PROTO_COMPATIBLE
26 #define GETSOCKNAME_PROTO_COMPATIBLE
28 /* even if we do have dlopen, we don't want heimdal using it */
29 #undef HAVE_DLOPEN
31 /* we need to tell roken about the functions that Samba replaces in lib/replace */
32 #ifndef HAVE_SETEUID
33 #define HAVE_SETEUID 1
34 #endif
36 #ifndef HAVE_SOCKLEN_T
37 #define HAVE_SOCKLEN_T
38 #endif
40 #ifndef HAVE_STRNDUP
41 #define HAVE_STRNDUP
42 #endif
43 #ifndef HAVE_SOCKLEN_T
44 #define HAVE_SOCKLEN_T
45 #endif
47 #ifndef HAVE_SSIZE_T
48 #define HAVE_SSIZE_T
49 #endif
51 #include "heimdal/lib/roken/roken.h"
52 #endif