From 5db8f83c84b5667af1108e5ef0550f166bd8632a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 28 Feb 2020 11:41:49 +0100 Subject: [PATCH] I/O [NT]: Enable some termios functions on NT. Fixes #10013. --- src/modules/_Stdio/file.c | 2 +- src/modules/_Stdio/file_functions.h | 2 +- src/modules/_Stdio/termios.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/_Stdio/file.c b/src/modules/_Stdio/file.c index 20408a48b1..14522f2f44 100644 --- a/src/modules/_Stdio/file.c +++ b/src/modules/_Stdio/file.c @@ -6155,7 +6155,7 @@ void check_static_file_data(struct callback *UNUSED(a), void *UNUSED(b), } #endif -#if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H) +#if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H) || defined(__NT__) void file_tcgetattr(INT32 args); #ifdef HAVE_TCGETATTR void file_tcsetattr(INT32 args); diff --git a/src/modules/_Stdio/file_functions.h b/src/modules/_Stdio/file_functions.h index 67040f189d..f2efea572d 100644 --- a/src/modules/_Stdio/file_functions.h +++ b/src/modules/_Stdio/file_functions.h @@ -167,7 +167,7 @@ FILE_FUNC("grantpt",file_grantpt, tFunc(tNone,tStr)) #endif /* From termios.c */ -#if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H) +#if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H) || defined(__NT__) /* function(void:mapping) */ FILE_FUNC("tcgetattr",file_tcgetattr, tFunc(tNone,tMapping)) #ifdef HAVE_TCGETATTR diff --git a/src/modules/_Stdio/termios.c b/src/modules/_Stdio/termios.c index 1e243ca44e..d33bee7e8e 100644 --- a/src/modules/_Stdio/termios.c +++ b/src/modules/_Stdio/termios.c @@ -7,7 +7,7 @@ #include "global.h" #include "file_machine.h" -#if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H) +#if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H) || defined(__NT__) #ifdef HAVE_TERMIOS_H #include <termios.h> -- GitLab