diff --git a/src/modules/_Stdio/file.c b/src/modules/_Stdio/file.c
index 20408a48b1a1e422116dd4041f9f03d9db93c0cb..14522f2f44650a23692c305a9872e5b34edf0c1e 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 67040f189d3d3608f46aeff88cac35cc6d1b1138..f2efea572d44a93071130664e959cf52afcc60c0 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 1e243ca44e462edaf98df63de4a33eee379233ab..d33bee7e8ef85648b7d708ecef39eda13772fdb2 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>