Only use getline() when compiling using glibc

This commit is contained in:
Andrew M. Kuchling 2000-11-30 18:27:50 +00:00
parent 1a62750eda
commit 1221e6df3d
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ get_line(PyFileObject *f, int n)
size_t n1, n2;
PyObject *v;
#ifdef HAVE_GETLINE
#if defined(HAVE_GETLINE) && defined(_GNU_SOURCE)
/* Use GNU libc extension getline() for arbitrary-sized lines */
if (n == 0) {
size_t size = 0;