summaryrefslogtreecommitdiffstats
path: root/player
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 /player
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 'player')
-rw-r--r--player/loadfile.c1
-rw-r--r--player/lua.c1
-rw-r--r--player/scripting.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 50312712d2..ce25070a79 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -18,6 +18,7 @@
#include <stddef.h>
#include <stdbool.h>
+#include <strings.h>
#include <inttypes.h>
#include <assert.h>
diff --git a/player/lua.c b/player/lua.c
index a06887b7cd..81a6363d2a 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -17,6 +17,7 @@
#include <assert.h>
#include <string.h>
+#include <strings.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/player/scripting.c b/player/scripting.c
index 6f6c40687f..0393427bef 100644
--- a/player/scripting.c
+++ b/player/scripting.c
@@ -16,6 +16,7 @@
*/
#include <string.h>
+#include <strings.h>
#include <sys/types.h>
#include <dirent.h>
#include <math.h>