aboutsummaryrefslogtreecommitdiffstats
path: root/tools/yuvcmp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-08 01:55:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-08 01:56:33 +0200
commit1574eedd0e9191ea052ade8a3b34b61c033baf89 (patch)
treee403bed1b7d387351ea8addcfe4c5625a0228bf1 /tools/yuvcmp.c
parent39ea21713c545607d3269d4414e3fe6224cf9a21 (diff)
downloadffmpeg-1574eedd0e9191ea052ade8a3b34b61c033baf89.tar.gz
tools/yuvcmp: add HAVE_UNISTD_H around #include <unistd.h>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/yuvcmp.c')
-rw-r--r--tools/yuvcmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/yuvcmp.c b/tools/yuvcmp.c
index 11585f9b4c..65b1794d07 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)