[FFmpeg-cvslog] rtpdec: Don't explicitly include unistd.h any longer

Ronald S. Bultje git at videolan.org
Fri Jun 29 23:27:44 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 24 21:05:21 2012 +0300| [dfb57fc5962006cdc61a1eb13b5ef078572eecca] | committer: Martin Storsjö

rtpdec: Don't explicitly include unistd.h any longer

unistd.h used to be required for gethostname. On windows, gethostname
is provided by winsock2.h. Now network.h includes both unistd.h and
winsock2.h if they exist.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dfb57fc5962006cdc61a1eb13b5ef078572eecca
---

 libavformat/rtpdec.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index b3bce24..87d9255 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -26,7 +26,6 @@
 #include "mpegts.h"
 #include "url.h"
 
-#include <unistd.h>
 #include "network.h"
 
 #include "rtpdec.h"



More information about the ffmpeg-cvslog mailing list