[vlc-commits] contrib: shout: respect the availability of strings.h everywhere

Steve Lhomme git at videolan.org
Fri Mar 30 17:32:52 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Mar 29 15:00:53 2018 +0200| [3fc9ce383565b12a3d1e372f062576510b741779] | committer: Steve Lhomme

contrib: shout: respect the availability of strings.h everywhere

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

 contrib/src/shout/rules.mak           |  1 +
 contrib/src/shout/shout-strings.patch | 36 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/contrib/src/shout/rules.mak b/contrib/src/shout/rules.mak
index 500420cbe2..ac34c59a29 100644
--- a/contrib/src/shout/rules.mak
+++ b/contrib/src/shout/rules.mak
@@ -23,6 +23,7 @@ libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
 	$(APPLY) $(SRC)/shout/bsd.patch
 	$(APPLY) $(SRC)/shout/libshout-arpa.patch
 	$(APPLY) $(SRC)/shout/fix-xiph_openssl.patch
+	$(APPLY) $(SRC)/shout/shout-strings.patch
 	$(call pkg_static,"shout.pc.in")
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
diff --git a/contrib/src/shout/shout-strings.patch b/contrib/src/shout/shout-strings.patch
new file mode 100644
index 0000000000..438a364899
--- /dev/null
+++ b/contrib/src/shout/shout-strings.patch
@@ -0,0 +1,36 @@
+--- libshout/src/common/httpp/encoding.c.strings	2015-11-20 20:51:36.000000000 +0100
++++ libshout/src/common/httpp/encoding.c	2018-03-29 11:00:04.524097700 +0200
+@@ -27,7 +27,9 @@
+ #endif
+ 
+ #include <sys/types.h>
++#ifdef HAVE_STRINGS_H
+ #include <strings.h>
++#endif
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+--- libshout/src/proto_http.c.strings	2015-11-20 17:22:27.000000000 +0100
++++ libshout/src/proto_http.c	2018-03-29 10:53:02.770498200 +0200
+@@ -28,7 +28,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef HAVE_STRINGS_H
+ #include <strings.h>
++#endif
+ 
+ #include <shout/shout.h>
+ #include "shout_private.h"
+--- libshout/src/shout.c.strings	2015-11-09 12:54:12.000000000 +0100
++++ libshout/src/shout.c	2018-03-29 10:52:59.169968800 +0200
+@@ -29,7 +29,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef HAVE_STRINGS_H
+ #include <strings.h>
++#endif
+ #include <errno.h>
+ 
+ #include <shout/shout.h>



More information about the vlc-commits mailing list