r18154: try to get the heimdal_build code to use libreplace in a better way
[sfrench/samba-autobuild/.git] / source4 / heimdal_build / config.h
1 /*
2   this is a replacement config.h for building the heimdal parts of the
3   Samba source tree
4 */
5
6 #ifndef HAVE_HEIMDAL_CONFIG_H
7 #define HAVE_HEIMDAL_CONFIG_H 1
8
9 #include "include/config.h"
10 #include "replace.h"
11
12 #define RCSID(msg)
13
14 #ifdef VOID_RETSIGTYPE
15 #define SIGRETURN(x) return
16 #else
17 #define SIGRETURN(x) return (RETSIGTYPE)(x)
18 #endif
19
20 /* path to sysconf - should we force this to samba LIBDIR ? */
21 #define SYSCONFDIR "/etc"
22
23 /* HDB module dir - set to Samba LIBDIR/hdb ? */
24 #define HDBDIR "/usr/heimdal/lib"
25
26 /* Maximum values on all known systems */
27 #define MaxHostNameLen (64+4)
28 #define MaxPathLen (1024+4)
29
30 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.7rc1"}
31
32 /* even if we do have dlopen, we don't want heimdal using it */
33 #undef HAVE_DLOPEN
34
35 #define VERSION "Samba"
36
37 #define ROKEN_LIB_FUNCTION
38
39 /* these should be done with configure tests */
40 #define KRB5
41
42 /* we need to tell roken about the functions that Samba replaces in lib/replace */
43 #ifndef HAVE_SETEUID
44 #define HAVE_SETEUID 1
45 #endif
46
47 #define GETHOSTBYADDR_PROTO_COMPATIBLE
48 #define GETSERVBYNAME_PROTO_COMPATIBLE
49 #define OPENLOG_PROTO_COMPATIBLE
50 #define GETSOCKNAME_PROTO_COMPATIBLE
51
52 #ifndef HAVE_SOCKLEN_T
53 #define HAVE_SOCKLEN_T
54 #endif
55
56 #ifndef HAVE_STRNDUP
57 #define HAVE_STRNDUP
58 #endif
59 #ifndef HAVE_SOCKLEN_T
60 #define HAVE_SOCKLEN_T
61 #endif
62
63 #ifndef HAVE_SSIZE_T
64 #define HAVE_SSIZE_T
65 #endif
66
67 #endif