67516f01c7276f39f31e5fc9c8bb4aeb8f4bbcdd
[ira/wip.git] / source / 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 /* bring in the samba4 config.h */
10 #include "include/config.h"
11
12 #ifdef HAVE_KRB5
13
14 #define RCSID(msg)
15
16 #ifdef VOID_RETSIGTYPE
17 #define SIGRETURN(x) return
18 #else
19 #define SIGRETURN(x) return (RETSIGTYPE)(x)
20 #endif
21
22 /* path to sysconf - should we force this to samba LIBDIR ? */
23 #define SYSCONFDIR "/etc"
24
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 #include <sys/types.h>
43 #include <stdarg.h>
44 #ifdef HAVE_INTTYPES_H
45 #include <inttypes.h>
46 #endif
47 #include "lib/replace/replace.h"
48 #endif
49
50 /* we need to tell roken about the functions that Samba replaces in lib/replace */
51 #ifndef HAVE_SETEUID
52 #define HAVE_SETEUID 1
53 #endif
54
55 #define GETHOSTBYADDR_PROTO_COMPATIBLE
56 #define GETSERVBYNAME_PROTO_COMPATIBLE
57 #define OPENLOG_PROTO_COMPATIBLE
58 #define GETSOCKNAME_PROTO_COMPATIBLE
59
60 #ifndef HAVE_SOCKLEN_T
61 #define HAVE_SOCKLEN_T
62 #endif
63
64 #ifndef HAVE_STRNDUP
65 #define HAVE_STRNDUP
66 #endif
67 #ifndef HAVE_SOCKLEN_T
68 #define HAVE_SOCKLEN_T
69 #endif
70
71 #ifndef HAVE_SSIZE_T
72 #define HAVE_SSIZE_T
73 #endif
74
75 #endif