aboutsummaryrefslogtreecommitdiff
path: root/www/mod_gnutls/files/patch-src_gnutls__util.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-08-24 01:39:16 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-08-24 01:39:16 +0000
commitc3a2552c8e75977e1b0407caba44971c8bae39e9 (patch)
tree9082eabca6f55bf632c2f050cf510c29cbd8ed3d /www/mod_gnutls/files/patch-src_gnutls__util.c
parentf461ac0cc2145630b413c304dd8655f9bba1531a (diff)
downloadports-c3a2552c8e75977e1b0407caba44971c8bae39e9.tar.gz
ports-c3a2552c8e75977e1b0407caba44971c8bae39e9.zip
Resurrect www/mod_gnutls and update to 0.8.2.
Notes
Notes: svn path=/head/; revision=448644
Diffstat (limited to 'www/mod_gnutls/files/patch-src_gnutls__util.c')
-rw-r--r--www/mod_gnutls/files/patch-src_gnutls__util.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/www/mod_gnutls/files/patch-src_gnutls__util.c b/www/mod_gnutls/files/patch-src_gnutls__util.c
new file mode 100644
index 000000000000..138353bcfc0a
--- /dev/null
+++ b/www/mod_gnutls/files/patch-src_gnutls__util.c
@@ -0,0 +1,12 @@
+--- src/gnutls_util.c.orig 2016-12-25 18:36:37 UTC
++++ src/gnutls_util.c
+@@ -113,7 +113,8 @@ apr_status_t datum_from_file(apr_pool_t *p, const char
+
+ /* safe integer type conversion: unsigned int and apr_size_t might
+ * have different sizes */
+-#if defined(__GNUC__) && __GNUC__ < 5 && !defined(__clang__)
++#if defined(__GNUC__) && __GNUC__ < 5 && \
++ !(defined(__clang__) && __has_builtin(__builtin_add_overflow))
+ if (__builtin_expect(br > UINT_MAX, 0))
+ return APR_EINVAL;
+ else