diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/fileobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index d008ff7..43b81ed 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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; |