[vlc-commits] contrib: gnutls: missing limits.h

Rafaël Carré git at videolan.org
Wed Mar 7 03:14:44 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Mar  6 21:04:08 2012 -0500| [ecd92c1dd91675e61ba69aac6e72277f06bd7abf] | committer: Rafaël Carré

contrib: gnutls: missing limits.h

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecd92c1dd91675e61ba69aac6e72277f06bd7abf
---

 contrib/src/gnutls/read-file-limits.h.patch |   12 ++++++++++++
 contrib/src/gnutls/rules.mak                |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/contrib/src/gnutls/read-file-limits.h.patch b/contrib/src/gnutls/read-file-limits.h.patch
new file mode 100644
index 0000000..7679e51
--- /dev/null
+++ b/contrib/src/gnutls/read-file-limits.h.patch
@@ -0,0 +1,12 @@
+--- gnutls/lib/gl/read-file.c.orig	2012-03-06 20:59:29.600593329 -0500
++++ gnutls/lib/gl/read-file.c	2012-03-06 20:59:44.568593328 -0500
+@@ -35,6 +35,9 @@
+ /* Get errno. */
+ #include <errno.h>
+ 
++/* Get SIZE_MAX */
++#include <limits.h>
++
+ /* Read a STREAM and return a newly allocated string with the content,
+    and set *LENGTH to the length of the string.  The string is
+    zero-terminated, but the terminating zero byte is not counted in
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index 1e12fc4..7802f69 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -22,6 +22,7 @@ ifdef HAVE_ANDROID
 	$(APPLY) $(SRC)/gnutls/no-gl.patch
 endif
 	$(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch
+	$(APPLY) $(SRC)/gnutls/read-file-limits.h.patch
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
 



More information about the vlc-commits mailing list