diff options
Diffstat (limited to 'source4/lib/cmdline/readline.c')
-rw-r--r-- | source4/lib/cmdline/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/cmdline/readline.c b/source4/lib/cmdline/readline.c index 4970638d41..42810c8697 100644 --- a/source4/lib/cmdline/readline.c +++ b/source4/lib/cmdline/readline.c @@ -59,7 +59,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void) fd_set fds; static pstring line; struct timeval timeout; - int fd = x_fileno(x_stdin); + int fd = STDIN_FILENO; char *ret; do_debug("%s", prompt); @@ -88,7 +88,7 @@ char *smb_readline(const char *prompt, void (*callback)(void), char **(completion_fn)(const char *text, int start, int end)) { #if HAVE_LIBREADLINE - if (isatty(x_fileno(x_stdin))) { + if (isatty(STDIN_FILENO)) { char *ret; /* Aargh! Readline does bizzare things with the terminal width |