2 this is a replacement config.h for building the heimdal parts of the
6 #ifndef HAVE_HEIMDAL_CONFIG_H
7 #define HAVE_HEIMDAL_CONFIG_H
9 #include "include/config.h"
10 #include "../replace/replace.h"
11 #include "../lib/util/attr.h"
13 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"}
15 #define VERSION "Samba"
17 #define PACKAGE VERSION
18 #define PACKAGE_BUGREPORT "https://bugzilla.samba.org/"
19 #define PACKAGE_VERSION VERSION
21 #define RCSID(msg) struct __rcsid { int __rcsdi; }
24 /* This needs to be defined for roken too */
25 #ifdef VOID_RETSIGTYPE
26 #define SIGRETURN(x) return
28 #define SIGRETURN(x) return (RETSIGTYPE)(x)
33 #undef HAVE_KRB5_ENCRYPT_BLOCK
35 /* Because it can't be defined in roken.h */
36 #ifndef USE_HCRYPTO_IMATH
37 #define USE_HCRYPTO_IMATH
40 /*Workaround for heimdal define vs samba define*/
41 #if defined(HAVE_LIBINTL_H) && defined(HAVE_BINDTEXTDOMAIN) &&\
42 defined(HAVE_TEXTDOMAIN)
46 /* heimdal now wants some atomic ops - ask for the non-atomic ones for Samba */
47 #define HEIM_BASE_NON_ATOMIC 1
49 /* lib/replace provides an XSI Compatable strerror_r so use that */
50 #define STRERROR_R_PROTO_COMPATIBLE
52 /* lib/replace provides a closefrom */
53 #ifndef HAVE_CLOSEFROM
54 #define HAVE_CLOSEFROM 1
57 /* lib/replace provides a getprogname */
58 #ifndef HAVE_GETPROGNAME
59 #define HAVE_GETPROGNAME 1
62 /* lib/replace provides a strsep */
67 #define fallthrough FALL_THROUGH