From: Andrew M. Kuchling Date: Thu, 30 Nov 2000 18:27:50 +0000 (+0000) Subject: Only use getline() when compiling using glibc X-Git-Tag: v2.1a1~683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1221e6df3d02c3a2eea3907cdee1f23f757956ba;p=python Only use getline() when compiling using glibc --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index d008ff7a02..43b81ed45d 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;