summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-10 08:28:03 +0200
committerwm4 <wm4@nowhere>2014-07-10 08:29:32 +0200
commitf8c2dd1b785125e82b9f2d04f1618137db1e2378 (patch)
tree457fc6cb667876c9d4a7dff37bd3e539d742d03b /stream
parente1f2540ede81d79423f51dcd9de2104ab0042132 (diff)
downloadmpv-f8c2dd1b785125e82b9f2d04f1618137db1e2378.tar.bz2
mpv-f8c2dd1b785125e82b9f2d04f1618137db1e2378.tar.xz
build: include <strings.h> for strcasecmp()
It happens to work without strings.h on glibc or with _GNU_SOURCE, but the POSIX standard requires including <strings.h>. Hopefully fixes OSX build.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvd.c1
-rw-r--r--stream/stream_pvr.c1
-rw-r--r--stream/tv.c1
-rw-r--r--stream/tvi_v4l2.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 1dd0324bbb..857d144a65 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <unistd.h>
#include <string.h>
+#include <strings.h>
#include <libgen.h>
#include <errno.h>
#include <stdint.h>
diff --git a/stream/stream_pvr.c b/stream/stream_pvr.c
index 217a27849a..6fa0b93926 100644
--- a/stream/stream_pvr.c
+++ b/stream/stream_pvr.c
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <strings.h>
#include <sys/time.h>
#include <errno.h>
#include <sys/ioctl.h>
diff --git a/stream/tv.c b/stream/tv.c
index dc50576793..65260e04c0 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <strings.h>
#include <sys/time.h>
#include <assert.h>
#include <libavutil/avstring.h>
diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c
index 96ddd639d8..13067b8cab 100644
--- a/stream/tvi_v4l2.c
+++ b/stream/tvi_v4l2.c
@@ -40,6 +40,7 @@ known issues:
#include <pthread.h>
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <time.h>
#include <sys/ioctl.h>
#include <sys/mman.h>