[MPlayer-dev-eng] vorbis and ogg need strings.h as well
Andy Furniss
andyqos at ukfsn.org
Mon Mar 18 00:53:17 CET 2013
I notice this doesn't show with --enable-debug, but without I get -
cc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=gnu99 -Werror-implicit-function-declaration -D_ISOC99_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-Ilibdvdread4 -I. -Iffmpeg -I/home/andy/Src/Xorg-git/modular/include
-D_REENTRANT -I/usr/X11R6/include -I/usr/include/freetype2 -c -o
libmpcodecs/ad_libvorbis.o libmpcodecs/ad_libvorbis.c
libmpcodecs/ad_libvorbis.c: In function 'read_vorbis_comment':
libmpcodecs/ad_libvorbis.c:70:3: error: implicit declaration of function
'strncasecmp' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [libmpcodecs/ad_libvorbis.o] Error 1
Same for ogg
-------------- next part --------------
Index: libmpcodecs/ad_libvorbis.c
===================================================================
--- libmpcodecs/ad_libvorbis.c (revision 36004)
+++ libmpcodecs/ad_libvorbis.c (working copy)
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <strings.h>
#include <unistd.h>
#include <stdarg.h>
#include <math.h>
Index: libmpdemux/demux_ogg.c
===================================================================
--- libmpdemux/demux_ogg.c (revision 36004)
+++ libmpdemux/demux_ogg.c (working copy)
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <assert.h>
#include <math.h>
#include <inttypes.h>
More information about the MPlayer-dev-eng
mailing list