Commit 145a8096 authored by Martin Storsjö's avatar Martin Storsjö

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: default avatarMartin Storsjö <martin@martin.st>
parent 980e65f1
...@@ -26,7 +26,7 @@ ...@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment