avfilter/vf_drawtext: Add #if HAVE_UNISTD_H around #include <unistd.h>
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Jul 2014 00:48:51 +0000 (02:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Jul 2014 00:49:13 +0000 (02:49 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_drawtext.c

index 8c090d7..0d829a6 100644 (file)
@@ -34,7 +34,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <time.h>
+#if HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #if CONFIG_LIBFONTCONFIG
 #include <fontconfig/fontconfig.h>