diff src/sysdep.cc @ 14160:ebcb0f83698f stable

use gnulib::isatty * bootstrap.conf (gnulib_modules): Include isatty in the list. * sysdep.cc (raw_mode): Use gnulib::isatty. * octave.cc (octave_main): Likewise. * lex.ll: Define isatty to use gnulib namespace.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jan 2012 12:39:49 -0500
parents 72c96de7a403
children eff4a5933e28
line wrap: on
line diff
--- a/src/sysdep.cc	Fri Jan 06 12:09:02 2012 -0500
+++ b/src/sysdep.cc	Fri Jan 06 12:39:49 2012 -0500
@@ -288,7 +288,7 @@
   static bool curr_on = false;
 
   int tty_fd = STDIN_FILENO;
-  if (! isatty (tty_fd))
+  if (! gnulib::isatty (tty_fd))
     {
       if (interactive)
         error ("stdin is not a tty!");