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:
Sebastian Dröge
2012-11-28 16:55:12 +01:00
parent 97385dbbe8
commit c9affa778e
8 changed files with 2 additions and 182 deletions

View File

@@ -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;
}