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

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


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Tue Mar  6 21:04:08 2012 -0500| [93f36d716ecc1d4a10212377b3a12b93cadabf9d] | committer: Jean-Baptiste Kempf

contrib: gnutls: missing limits.h
(cherry picked from commit ecd92c1dd91675e61ba69aac6e72277f06bd7abf)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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