Commit 1221e6df authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Only use getline() when compiling using glibc

parent 1a62750e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment