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

Ronald S. Bultje git at videolan.org
Fri Sep 7 18:48:41 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 24 21:05:21 2012 +0300| [9d0bc5c0bda05ac4441691423501bb3ee280e6e6] | committer: Michael Niedermayer

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>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 98f6595..b4d013b 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -27,7 +27,6 @@
 #include "mpegts.h"
 #include "url.h"
 
-#include <unistd.h>
 #include "network.h"
 
 #include "rtpdec.h"



More information about the ffmpeg-cvslog mailing list