1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/third_party/heimdal_build/config.h
Joseph Sutton fccf985978 third_party/heimdal_build: Define fallthrough macro for switch statements
This is an adaptation to Heimdal:

commit ddc61136100b32346c4c4efa2bb6ddb5baedfb3e
Author: Nicolas Williams <nico@twosigma.com>
Date:   Fri Jan 14 16:32:04 2022 -0600

    Use fallthrough statement attribute

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14995

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-03-01 22:34:34 +00:00

70 lines
1.5 KiB
C

/*
this is a replacement config.h for building the heimdal parts of the
Samba source tree
*/
#ifndef HAVE_HEIMDAL_CONFIG_H
#define HAVE_HEIMDAL_CONFIG_H
#include "include/config.h"
#include "../replace/replace.h"
#include "../lib/util/attr.h"
#define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"}
#define VERSION "Samba"
#define PACKAGE VERSION
#define PACKAGE_BUGREPORT "https://bugzilla.samba.org/"
#define PACKAGE_VERSION VERSION
#define RCSID(msg) struct __rcsid { int __rcsdi; }
#define KRB5
/* This needs to be defined for roken too */
#ifdef VOID_RETSIGTYPE
#define SIGRETURN(x) return
#else
#define SIGRETURN(x) return (RETSIGTYPE)(x)
#endif
#define HDB_DB_DIR ""
#undef HAVE_KRB5_ENCRYPT_BLOCK
/* Because it can't be defined in roken.h */
#ifndef USE_HCRYPTO_IMATH
#define USE_HCRYPTO_IMATH
#endif
/*Workaround for heimdal define vs samba define*/
#if defined(HAVE_LIBINTL_H) && defined(HAVE_BINDTEXTDOMAIN) &&\
defined(HAVE_TEXTDOMAIN)
#define LIBINTL
#endif
/* heimdal now wants some atomic ops - ask for the non-atomic ones for Samba */
#define HEIM_BASE_NON_ATOMIC 1
/* lib/replace provides an XSI Compatable strerror_r so use that */
#define STRERROR_R_PROTO_COMPATIBLE
/* lib/replace provides a closefrom */
#ifndef HAVE_CLOSEFROM
#define HAVE_CLOSEFROM 1
#endif
/* lib/replace provides a getprogname */
#ifndef HAVE_GETPROGNAME
#define HAVE_GETPROGNAME 1
#endif
/* lib/replace provides a strsep */
#ifndef HAVE_STRSEP
#define HAVE_STRSEP 1
#endif
#define fallthrough FALL_THROUGH
#endif