summaryrefslogtreecommitdiffstats
path: root/demux
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 /demux
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 'demux')
-rw-r--r--demux/demux_lavf.c3
-rw-r--r--demux/demux_mf.c1
-rw-r--r--demux/demux_playlist.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index db2499d61e..e4d2cce2ec 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -18,12 +18,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-// #include <stdio.h>
#include <stdlib.h>
-// #include <unistd.h>
#include <limits.h>
#include <stdbool.h>
#include <string.h>
+#include <strings.h>
#include <assert.h>
#include "config.h"
diff --git a/demux/demux_mf.c b/demux/demux_mf.c
index 1a91d3f124..721d99cf4d 100644
--- a/demux/demux_mf.c
+++ b/demux/demux_mf.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <strings.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c
index b2344b5583..9f533e1b8e 100644
--- a/demux/demux_playlist.c
+++ b/demux/demux_playlist.c
@@ -15,6 +15,8 @@
* with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <strings.h>
+
#include "common/common.h"
#include "options/options.h"
#include "common/msg.h"