| index abc92d1..0b46868 100644 | | index abc92d1..0b46868 100644 |
| --- a/src/plugin_seqthink.c | | --- a/src/plugin_seqthink.c |
| +++ b/src/plugin_seqthink.c | | +++ b/src/plugin_seqthink.c |
| @@ -78,6 +78,7 @@ | | @@ -78,6 +78,7 @@ |
| 78 | #if defined(_WIN32) | 78 | #if defined(_WIN32) |
| 79 | # include <windows.h> | 79 | # include <windows.h> |
| 80 | # include <io.h> | 80 | # include <io.h> |
| | 81 | +# include <fcntl.h> /* _O_BINARY, _setmode, _fileno */ |
| 81 | # include <direct.h> | 82 | # include <direct.h> |
| 82 | # include <string.h> | 83 | # include <string.h> |
| 83 | # ifndef strncasecmp | 84 | # ifndef strncasecmp |
| @@ -361,7 +362,9 @@ static void require_node_auth(void) | | @@ -361,7 +362,9 @@ static void require_node_auth(void) |
| 361 | static void state_dir(char *out, size_t outsz) | 362 | static void state_dir(char *out, size_t outsz) |
| 362 | { | 363 | { |
| 363 | const char *env = getenv("SEQTHINK_STATE_DIR"); | 364 | const char *env = getenv("SEQTHINK_STATE_DIR"); |
| | 365 | +#ifndef _WIN32 |
| 364 | struct stat st; | 366 | struct stat st; |
| | 367 | +#endif |
| 365 | | 368 | |
| 366 | if (env && *env) { snprintf(out, outsz, "%s", env); return; } | 369 | if (env && *env) { snprintf(out, outsz, "%s", env); return; } |
| 367 | #ifndef _WIN32 | 370 | #ifndef _WIN32 |
| 368 | | 371 | |