summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-16 12:21:29 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-16 12:24:47 +0200
commit4a754d029b0eb229b23980aa4a80dae2b485a302 (patch)
tree12b51d0cc622403f9828a8a88db619edd4baf546 /source4
parent98aba452fbddb9f05250a7e4dc8979990759f671 (diff)
downloadsamba-4a754d029b0eb229b23980aa4a80dae2b485a302.tar.gz
samba-4a754d029b0eb229b23980aa4a80dae2b485a302.tar.bz2
samba-4a754d029b0eb229b23980aa4a80dae2b485a302.zip
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
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal_build/krb5-types.h8
1 files changed, 8 insertions, 0 deletions
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__ */