Bug 898810 - Use bionic's getline where available, r=benwa

This commit is contained in:
Michael Wu 2013-07-29 13:17:28 -04:00
Родитель 64399c7810
Коммит 58609a7075
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -14,8 +14,8 @@
#include "platform.h"
#include "shared-libraries.h"
#ifndef __GLIBC__
/* a crapy version of getline, because it's not included in bionic */
#if !defined(__GLIBC__) && ANDROID_VERSION < 18
/* a crapy version of getline, because it's not included in old bionics */
static ssize_t getline(char **lineptr, size_t *n, FILE *stream)
{
char *ret;