From b484efca569713b0518ae6e226ef5451d7125e28 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 15 Sep 2014 19:51:41 +0300 Subject: Support MAKE_TERMOUT and MAKE_TERMERR on MS-Windows. * w32/compat/posixfcn.c (isatty, ttyname): New functions. * config.h.W32.template (HAVE_TTYNAME): Define. Add a prototype for ttyname. --- config.h.W32.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.h.W32.template') diff --git a/config.h.W32.template b/config.h.W32.template index 849a855..07bb626 100644 --- a/config.h.W32.template +++ b/config.h.W32.template @@ -296,7 +296,8 @@ this program. If not, see . */ #define HAVE_ISATTY 1 /* Define to 1 if you have the `ttyname' function. */ -/* #undef HAVE_TTYNAME */ +#define HAVE_TTYNAME 1 +char *ttyname (int); /* Define to 1 if 'n_un.n_name' is a member of 'struct nlist'. */ /* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */ -- cgit v1.2.3