From 4a754d029b0eb229b23980aa4a80dae2b485a302 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 16 Jul 2009 12:21:29 +0200 Subject: s4:heimdal_build: predefine GSSAPI_DEPRECATED depending on the compiler version Otherwise heimdal/lib/gssapi/gssapi/gssapi.h will just define it to __attribute__ ((deprecated)) which is not supported by all compilers we care about. This should fix the build on Tru64 metze --- source4/heimdal_build/krb5-types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4') diff --git a/source4/heimdal_build/krb5-types.h b/source4/heimdal_build/krb5-types.h index cdc5a3cba9..94973d7fbe 100644 --- a/source4/heimdal_build/krb5-types.h +++ b/source4/heimdal_build/krb5-types.h @@ -10,4 +10,12 @@ typedef socklen_t krb5_socklen_t; typedef ssize_t krb5_ssize_t; +#ifndef GSSAPI_DEPRECATED +#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) +#define GSSAPI_DEPRECATED __attribute__ ((deprecated)) +#else +#define GSSAPI_DEPRECATED +#endif +#endif + #endif /* __krb5_types_h__ */ -- cgit