diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-11-30 18:27:50 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-11-30 18:27:50 (GMT) |
commit | 1221e6df3d02c3a2eea3907cdee1f23f757956ba (patch) | |
tree | d20c4746ee789ea146eb5cc11af2ae71d0648aba /Objects | |
parent | 1a62750eda22dcef1976f4a3dbaa886039cd2f92 (diff) | |
download | cpython-1221e6df3d02c3a2eea3907cdee1f23f757956ba.zip cpython-1221e6df3d02c3a2eea3907cdee1f23f757956ba.tar.gz cpython-1221e6df3d02c3a2eea3907cdee1f23f757956ba.tar.bz2 |
Only use getline() when compiling using glibc
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; |