[MPlayer-dev-eng] [PATCH] rtsp_rtp.c compile problem on mingw

tempn at twmi.rr.com tempn at twmi.rr.com
Thu Jun 29 17:40:40 CEST 2006


make error when building on mingw, here is a patch that fixes.
i'm not sure if include inttypes should go in the win32 includes.

up to you guys.

thanks to tscattr/pacman for the fix

-compn

gcc -c -I../libvo -I../../libvo  -fno-PIC -W -Wall -Wno-unused-
parameter -O2 -march=i486 -
mcpu=i686 -g3  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.. -I../
loader    -I../libavutil -
I../libavcodec -I../libavformat    -o librtsp/rtsp_rtp.o librtsp/
rtsp_rtp.c
In file included from librtsp/rtsp_rtp.c:43:
librtsp/rtsp_session.h:36: parse error before "uint32_t"
librtsp/rtsp_rtp.c: In function `rtp_connect':
librtsp/rtsp_rtp.c:311: warning: passing arg 4 of `setsockopt' from 
incompatible pointer type
librtsp/rtsp_rtp.c:321: warning: passing arg 4 of `setsockopt' from 
incompatible pointer type
librtsp/rtsp_rtp.c:348: warning: comparison between signed and unsigned
librtsp/rtsp_rtp.c:365: warning: passing arg 4 of `getsockopt' from 
incompatible pointer type
make: *** [librtsp/rtsp_rtp.o] Error 1

Index: rtsp_rtp.c
===================================================================
--- rtsp_rtp.c  (revision 18852)
+++ rtsp_rtp.c  (working copy)
@@ -24,7 +24,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <sys/types.h>
-
+#include <inttypes.h>
 #include "config.h"
 
 #ifndef HAVE_WINSOCK2





More information about the MPlayer-dev-eng mailing list