mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
820492ba79
heimdal_build/config.h from interfering with libreplace This is a workaround for the fact that with the current CFLAGS and dependencies system, -Iheimdal_build is put at the front of the includes list, which means it overrides the normal config.h (This used to be commit 84335903ceaf2242e43a0c5464e33408daec44b4)
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
/*
|
|
a wrapper to override some of the defines that the heimdal roken system looks at
|
|
*/
|
|
#ifndef _ROKEN_H_
|
|
#define _ROKEN_H_
|
|
|
|
/* path to sysconf - should we force this to samba LIBDIR ? */
|
|
#define SYSCONFDIR "/etc"
|
|
|
|
/* HDB module dir - set to Samba LIBDIR/hdb ? */
|
|
#define HDBDIR "/usr/heimdal/lib"
|
|
|
|
/* Maximum values on all known systems */
|
|
#define MaxHostNameLen (64+4)
|
|
#define MaxPathLen (1024+4)
|
|
|
|
#define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.7rc1"}
|
|
|
|
#define VERSION "Samba"
|
|
|
|
#define ROKEN_LIB_FUNCTION
|
|
|
|
#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
|
|
|
|
/* we need to tell roken about the functions that Samba replaces in lib/replace */
|
|
#ifndef HAVE_SETEUID
|
|
#define HAVE_SETEUID 1
|
|
#endif
|
|
|
|
#ifndef HAVE_SOCKLEN_T
|
|
#define HAVE_SOCKLEN_T
|
|
#endif
|
|
|
|
#ifndef HAVE_STRNDUP
|
|
#define HAVE_STRNDUP
|
|
#endif
|
|
#ifndef HAVE_SOCKLEN_T
|
|
#define HAVE_SOCKLEN_T
|
|
#endif
|
|
|
|
#ifndef HAVE_SSIZE_T
|
|
#define HAVE_SSIZE_T
|
|
#endif
|
|
|
|
#include "heimdal/lib/roken/roken.h"
|
|
#endif
|