Using struct timeval requires sys/time.h, fixes compilation on some OSes
authorDave Yeo <daveryeo@telus.net>
Wed, 10 Mar 2010 07:43:56 +0000 (07:43 +0000)
committerMartin Storsjö <martin@martin.st>
Wed, 10 Mar 2010 07:43:56 +0000 (07:43 +0000)
Patch by Dave Yeo, daveryeo at telus dot net

Originally committed as revision 22425 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtpproto.c

index bb4aa31..ac8c3db 100644 (file)
@@ -36,6 +36,7 @@
 #if HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif
+#include <sys/time.h>
 
 #define RTP_TX_BUF_SIZE  (64 * 1024)
 #define RTP_RX_BUF_SIZE  (128 * 1024)