summaryrefslogtreecommitdiff
path: root/lib/getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getpass.c')
-rw-r--r--lib/getpass.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/getpass.c b/lib/getpass.c
index 1fee36ba..5b82cfca 100644
--- a/lib/getpass.c
+++ b/lib/getpass.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2001, 2003-2007, 2009-2014 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -85,7 +85,9 @@ getpass (const char *prompt)
{
FILE *tty;
FILE *in, *out;
+# if HAVE_TCGETATTR
struct termios s, t;
+# endif
bool tty_changed = false;
static char *buf;
static size_t bufsize;