Contributed by STMicroelectronics Signed-off-by: Torbjörn SVENSSON <torbjorn.svens...@foss.st.com> --- src/w32/compat/posixfcn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c index a89c0657..1af66b79 100644 --- a/src/w32/compat/posixfcn.c +++ b/src/w32/compat/posixfcn.c @@ -147,5 +147,6 @@ ttyname (int fd) 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; } -- 2.25.1