mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Only use getline() when compiling using glibc
This commit is contained in:
parent
1a62750eda
commit
1221e6df3d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue