diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c index 314abe73..72fe5f2e 100644 --- a/src/w32/compat/posixfcn.c +++ b/src/w32/compat/posixfcn.c @@ -147,5 +147,6 @@ ttyname (int fd UNUSED) sophisticated implementation should test whether FD is open for input or output. We can do that by looking at the mode returned by GetConsoleMode. */ - return "CONOUT$"; + static char name[] = "CONOUT$"; + return name; }