[Patches] Problem with _SC_AIO_LIST_MAX in posixmodule.c on Linux

Greg Ward gward@cnri.reston.va.us
Fri, 25 Feb 2000 12:12:05 -0500


On 25 February 2000, Guido van Rossum said:
> This seems a bug in the confname.h header file, which contains:
[...]

> Can anybody here suggest a better fix than this patch?

Wouldn't it be better to test for the specific version of glibc that has
this bug, rather than tarring all Linuces with it?  Eg. change your

#if defined(_SC_AIO_LIST_MAX) && !defined(linux)

to

#if defined(_SC_AIO_LIST_MAX) && \
    !(defined (__GLIBC__) && __GLIBC__ == 2 && \
      defined (__GLIBC_MINOR) && __GLIBC_MINOR == 1)

...or something like that.  This assumes the bug is confined to glibc
2.1, which is the version of glibc present included with (at least) Red
Hat 6.1.

        Greg