Browse Source

log: Only include unistd.h if configure found it

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>
tags/n1.0
Martin Storsjö 13 years ago
parent
commit
145a8096d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/log.c

+ 1
- 1
libavutil/log.c View File

@@ -26,7 +26,7 @@


#include "config.h" #include "config.h"


#if HAVE_ISATTY
#if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>


Loading…
Cancel
Save