r10476: Move some more types to libreplace. Fix missing strndup errors
[bbaumbach/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 /* bring in the samba4 config.h */
10 #include "include/config.h"
11
12 #ifdef HAVE_KRB5
13
14 #define RCSID(msg) \
15 static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
16
17 #ifdef VOID_RETSIGTYPE
18 #define SIGRETURN(x) return
19 #else
20 #define SIGRETURN(x) return (RETSIGTYPE)(x)
21 #endif
22
23 /* path to sysconf - should we force this to samba LIBDIR ? */
24 #define SYSCONFDIR "/etc"
25
26
27 /* Maximum values on all known systems */
28 #define MaxHostNameLen (64+4)
29 #define MaxPathLen (1024+4)
30
31 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.7rc1"}
32
33 /* even if we do have dlopen, we don't want heimdal using it */
34 #undef HAVE_DLOPEN
35
36 #define VERSION "Samba"
37
38 #define ROKEN_LIB_FUNCTION
39
40 /* these should be done with configure tests */
41 #define KRB5
42
43 #include <sys/types.h>
44 #include <stdarg.h>
45 #include "lib/replace/replace.h"
46 #endif
47
48 /* we need to tell roken about the functions that Samba replaces in lib/replace */
49 #ifndef HAVE_SETEUID
50 #define HAVE_SETEUID 1
51 #endif
52
53 #define GETHOSTBYADDR_PROTO_COMPATIBLE
54 #define GETSERVBYNAME_PROTO_COMPATIBLE
55 #define OPENLOG_PROTO_COMPATIBLE
56 #define GETSOCKNAME_PROTO_COMPATIBLE
57
58 #ifndef HAVE_STRNDUP
59 #define HAVE_STRNDUP
60 #endif
61
62 #endif