summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql/get_password.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/libmysql/get_password.c')
-rw-r--r--ext/mysql/libmysql/get_password.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/mysql/libmysql/get_password.c b/ext/mysql/libmysql/get_password.c
index c0c6f90406..9d39beac01 100644
--- a/ext/mysql/libmysql/get_password.c
+++ b/ext/mysql/libmysql/get_password.c
@@ -21,7 +21,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
#include <pwd.h>
#endif /* HAVE_PWD_H */
#else /* ! HAVE_GETPASS */
-#ifndef __WIN__
+#if !defined( __WIN__) && !defined(OS2)
#include <sys/ioctl.h>
#ifdef HAVE_TERMIOS_H /* For tty-password */
#include <termios.h>
@@ -48,9 +48,8 @@ This file is public domain and comes with NO WARRANTY of any kind */
#define getpass(A) getpassphrase(A)
#endif
-#ifdef __WIN__
-/* were just going to fake it here and get input from
- the keyboard */
+#if defined( __WIN__) || defined(OS2)
+/* were just going to fake it here and get input from the keyboard */
char *get_tty_password(char *opt_message)
{