diff options
author | adam <adam@pkgsrc.org> | 2011-06-01 09:57:23 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2011-06-01 09:57:23 +0000 |
commit | ddb30a933af205c0960eccce06a37649dbef11d0 (patch) | |
tree | a04adc3cc5bfac44a34d255ea187b7f9f81bb80f | |
parent | 91cf4d085fd187b30cedfa9168564e4b5c60c728 (diff) | |
download | pkgsrc-ddb30a933af205c0960eccce06a37649dbef11d0.tar.gz |
Fix building with Clang
-rw-r--r-- | security/mit-krb5/distinfo | 3 | ||||
-rw-r--r-- | security/mit-krb5/patches/patch-lib_krb5_asn.1_asn1buf.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/security/mit-krb5/distinfo b/security/mit-krb5/distinfo index 59cf0589c50..f4deaacbbe2 100644 --- a/security/mit-krb5/distinfo +++ b/security/mit-krb5/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.29 2011/04/14 19:37:26 tez Exp $ +$NetBSD: distinfo,v 1.30 2011/06/01 09:57:23 adam Exp $ SHA1 (2010-006-patch.txt) = 600f0890de65f96112f267b56317a4fd0166cba0 RMD160 (2010-006-patch.txt) = fc262a23e9aa118262a4258f74832445062444e4 @@ -37,3 +37,4 @@ SHA1 (patch-ch) = 0e36012b43c498b8920f204bab2ba9a68f8c851a SHA1 (patch-ci) = 4e310f0a4dfe27cf94d0e63d623590691b6c5970 SHA1 (patch-cj) = 78342f649f8e9d3a3b5a4f83e65b6c46f589586b SHA1 (patch-ck) = 87b7704ca9de02880ef8b3dbb097e87d0252bd4b +SHA1 (patch-lib_krb5_asn.1_asn1buf.h) = a1e46ca9256aea4facc1d41841b1707b044a69e7 diff --git a/security/mit-krb5/patches/patch-lib_krb5_asn.1_asn1buf.h b/security/mit-krb5/patches/patch-lib_krb5_asn.1_asn1buf.h new file mode 100644 index 00000000000..72349c31b69 --- /dev/null +++ b/security/mit-krb5/patches/patch-lib_krb5_asn.1_asn1buf.h @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_krb5_asn.1_asn1buf.h,v 1.1 2011/06/01 09:57:23 adam Exp $ + +Clang does not like this kind of inlines. + +--- lib/krb5/asn.1/asn1buf.h.orig 2011-06-01 09:47:31.000000000 +0000 ++++ lib/krb5/asn.1/asn1buf.h +@@ -147,7 +147,7 @@ asn1_error_code asn1buf_insert_octet(asn + * effects Inserts o into the buffer *buf, expanding the buffer if + * necessary. Returns ENOMEM memory is exhausted. + */ +-#if ((__GNUC__ >= 2) && !defined(ASN1BUF_OMIT_INLINE_FUNCS)) && !defined(CONFIG_SMALL) ++#if ((__GNUC__ >= 2) && !defined(__clang__) && !defined(ASN1BUF_OMIT_INLINE_FUNCS)) && !defined(CONFIG_SMALL) + extern __inline__ asn1_error_code asn1buf_insert_octet(asn1buf *buf, const int o) + { + asn1_error_code retval; |