aboutsummaryrefslogtreecommitdiffstats
path: root/src/termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/termcap.c')
-rw-r--r--src/termcap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/termcap.c b/src/termcap.c
index 99bbfce27f..7256eef9e8 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -427,11 +427,7 @@ tgetent (char *bp, const char *name)
/* Here we know we must search a file and termcap_name has its name. */
-#ifdef MSDOS
- fd = open (termcap_name, O_RDONLY|O_TEXT, 0);
-#else
- fd = open (termcap_name, O_RDONLY, 0);
-#endif
+ fd = emacs_open (termcap_name, O_RDONLY | O_TEXT, 0);
if (fd < 0)
return -1;