mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
7340351097
This is to adapt to Heimdal: commit 997916e3f67d70bb52674829615c50455918fbb3 Author: Taylor R Campbell <campbell+heimdal@mumble.net> Date: Sun May 28 20:34:34 2023 +0000 krb5: Make heimdal_version and heimdal_long_version const. NOTE: THIS COMMIT WON’T COMPILE/WORK ON ITS OWN! Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
171 lines
2.9 KiB
C
171 lines
2.9 KiB
C
/*
|
|
a wrapper to override some of the defines that the heimdal roken system looks at
|
|
*/
|
|
#ifndef _ROKEN_H_
|
|
#define _ROKEN_H_
|
|
|
|
#include "config.h"
|
|
|
|
/* path to sysconf - should we force this to samba LIBDIR ? */
|
|
#define SYSCONFDIR "/etc"
|
|
|
|
#define rk_PATH_DELIM '/'
|
|
|
|
#define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
|
|
|
|
/* Maximum values on all known systems */
|
|
#define MaxHostNameLen (64+4)
|
|
#define MaxPathLen (1024+4)
|
|
|
|
/* We want PKINIT */
|
|
#define PKINIT 1
|
|
|
|
#define ROKEN_LIB_FUNCTION
|
|
#define ROKEN_LIB_CALL
|
|
#define ROKEN_LIB_VARIABLE
|
|
#define GETHOSTBYADDR_PROTO_COMPATIBLE
|
|
#define GETSERVBYNAME_PROTO_COMPATIBLE
|
|
#define OPENLOG_PROTO_COMPATIBLE
|
|
#define GETSOCKNAME_PROTO_COMPATIBLE
|
|
|
|
/* even if we do have dlopen, we don't want heimdal using it */
|
|
#undef HAVE_DLOPEN
|
|
|
|
/* even if we have LMDB, we don't want heimdal using it */
|
|
#undef HAVE_LMDB
|
|
|
|
/* we need to tell roken about the functions that Samba replaces in lib/replace */
|
|
#ifndef HAVE_SETEUID
|
|
#define HAVE_SETEUID 1
|
|
#endif
|
|
|
|
#ifndef HAVE_STRNLEN
|
|
#define HAVE_STRNLEN
|
|
#endif
|
|
|
|
#ifndef HAVE_STRNDUP
|
|
#define HAVE_STRNDUP
|
|
#endif
|
|
|
|
#ifndef HAVE_STRLCPY
|
|
#define HAVE_STRLCPY
|
|
#endif
|
|
|
|
#ifndef HAVE_STRLCAT
|
|
#define HAVE_STRLCAT
|
|
#endif
|
|
|
|
#ifndef HAVE_STRCASECMP
|
|
#define HAVE_STRCASECMP
|
|
#endif
|
|
|
|
#ifndef HAVE_ASPRINTF
|
|
#define HAVE_ASPRINTF
|
|
#endif
|
|
|
|
#ifndef HAVE_VASPRINTF
|
|
#define HAVE_VASPRINTF
|
|
#endif
|
|
|
|
#ifndef HAVE_MKSTEMP
|
|
#define HAVE_MKSTEMP
|
|
#endif
|
|
|
|
#ifndef HAVE_SETENV
|
|
#define HAVE_SETENV
|
|
#endif
|
|
|
|
#ifndef HAVE_UNSETENV
|
|
#define HAVE_UNSETENV
|
|
#endif
|
|
|
|
#ifndef HAVE_VSYSLOG
|
|
#define HAVE_VSYSLOG
|
|
#endif
|
|
|
|
#ifndef HAVE_SSIZE_T
|
|
#define HAVE_SSIZE_T
|
|
#endif
|
|
|
|
#ifndef HAVE_STRPTIME
|
|
#define HAVE_STRPTIME
|
|
#endif
|
|
|
|
#ifndef HAVE_TIMEGM
|
|
#define HAVE_TIMEGM
|
|
#endif
|
|
|
|
#ifndef HAVE_INNETGR
|
|
#define HAVE_INNETGR
|
|
#endif
|
|
|
|
#ifndef HAVE_INET_ATON
|
|
#define HAVE_INET_ATON
|
|
#endif
|
|
|
|
#ifndef HAVE_INET_NTOP
|
|
#define HAVE_INET_NTOP
|
|
#endif
|
|
|
|
#ifndef HAVE_INET_PTON
|
|
#define HAVE_INET_PTON
|
|
#endif
|
|
|
|
#ifndef HAVE_GETTIMEOFDAY
|
|
#define HAVE_GETTIMEOFDAY
|
|
#endif
|
|
|
|
#ifndef HAVE_SETEGID
|
|
#define HAVE_SETEGID
|
|
#endif
|
|
|
|
#ifndef HAVE_SETEUID
|
|
#define HAVE_SETEUID
|
|
#endif
|
|
|
|
#ifndef HAVE_MEMSET_S
|
|
#define HAVE_MEMSET_S
|
|
#endif
|
|
|
|
#ifndef HAVE_DIRFD
|
|
#ifdef HAVE_DIR_DD_FD
|
|
#define dirfd(x) ((x)->dd_fd)
|
|
#else
|
|
#define dirfd(d) (-1)
|
|
#endif
|
|
#define HAVE_DIRFD 1
|
|
#endif
|
|
|
|
|
|
/* we lie about having pidfile() so that NetBSD5 can compile. Nothing
|
|
in the parts of heimdal we use actually uses pidfile(), and we
|
|
don't use it in Samba, so this works, although its ugly */
|
|
#ifndef HAVE_PIDFILE
|
|
#define HAVE_PIDFILE
|
|
#endif
|
|
|
|
#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
|
|
#ifndef HAVE___ATTRIBUTE__
|
|
#define HAVE___ATTRIBUTE__
|
|
#endif
|
|
#endif
|
|
|
|
#include "system/network.h"
|
|
|
|
/*
|
|
* we don't want that roken.h.in includes socket_wrapper
|
|
* we include socket_wrapper via "system/network.h"
|
|
*/
|
|
#undef SOCKET_WRAPPER_REPLACE
|
|
#include "../heimdal/lib/roken/roken.h.in"
|
|
|
|
extern const char *const heimdal_version;
|
|
extern const char *const heimdal_long_version;
|
|
|
|
/* we do not want any __APPLE__ magic */
|
|
#ifdef __APPLE__
|
|
#undef __APPLE__
|
|
#endif
|
|
|
|
#endif
|