tools/yuvcmp: add HAVE_UNISTD_H around #include <unistd.h>
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Jul 2014 23:55:47 +0000 (01:55 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Jul 2014 23:56:33 +0000 (01:56 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/yuvcmp.c

index 11585f9..65b1794 100644 (file)
@@ -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)