mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Revert "Fix compilation on Android with the bionic C library"
This reverts commit cb0ed84d40
.
It wasn't meant to be pushed yet.
This commit is contained in:
@@ -40,12 +40,8 @@
|
||||
|
||||
G_DEFINE_TYPE (GTlsConsoleInteraction, g_tls_console_interaction, G_TYPE_TLS_INTERACTION);
|
||||
|
||||
#if defined(G_OS_WIN32) || defined(__BIONIC__)
|
||||
#ifdef G_OS_WIN32
|
||||
/* win32 doesn't have getpass() */
|
||||
#include <stdio.h>
|
||||
#ifndef BUFSIZ
|
||||
#define BUFSIZ 8192
|
||||
#endif
|
||||
static gchar *
|
||||
getpass (const gchar *prompt)
|
||||
{
|
||||
@@ -57,11 +53,7 @@ getpass (const gchar *prompt)
|
||||
|
||||
for (i = 0; i < BUFSIZ - 1; ++i)
|
||||
{
|
||||
#ifdef __BIONIC__
|
||||
buf[i] = getc (stdin);
|
||||
#else
|
||||
buf[i] = _getch ();
|
||||
#endif
|
||||
if (buf[i] == '\r')
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user