log: Only include unistd.h if configure found it
authorMartin Storsjö <martin@martin.st>
Sat, 23 Jun 2012 16:21:35 +0000 (19:21 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 24 Jun 2012 09:36:22 +0000 (12:36 +0300)
MSVC has isatty (in io.h), but not unistd.h. (isatty isn't called
at all for windows, since there's a special case block for that.)

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/log.c

index e4a9fec..e2773d4 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "config.h"
 
-#if HAVE_ISATTY
+#if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #include <stdlib.h>