[FFmpeg-cvslog] tools/yuvcmp: add HAVE_UNISTD_H around #include <unistd.h>

Michael Niedermayer git at videolan.org
Tue Jul 8 02:03:17 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul  8 01:55:47 2014 +0200| [1574eedd0e9191ea052ade8a3b34b61c033baf89] | committer: Michael Niedermayer

tools/yuvcmp: add HAVE_UNISTD_H around #include <unistd.h>

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 tools/yuvcmp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/yuvcmp.c b/tools/yuvcmp.c
index 11585f9..65b1794 100644
--- a/tools/yuvcmp.c
+++ b/tools/yuvcmp.c
@@ -9,8 +9,10 @@
 #include <stdio.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <unistd.h>
 
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 int
 main(int argc, char **argv)



More information about the ffmpeg-cvslog mailing list