[Python-Dev] Broken build

Barry A. Warsaw barry@zope.com
Tue, 18 Sep 2001 23:51:56 -0400


>>>>> "TP" == Tim Peters <tim.one@home.com> writes:

    >> I believe there's an SF bug report mentioning the same problem
    >> that Barry reports.

    TP> Not only that, but Barry reported fixing it two months ago(!):

Oh jeez.

    |     Date: 2001-07-11 18:10
    |     Sender: bwarsaw
    |     Logged In: YES 
    |     user_id=12800

    |     Ploing!  I just reported this same problem to python-dev. 
    |     Attached is a patch that fixes it for me on my RH6.1-ish
    |     Linux box.

Yeah, but posixmodule.c has this bit in it:

#ifdef HAVE_NICE
#if defined(HAVE_BROKEN_NICE) && defined(HAVE_SYS_RESOURCE_H)
#if defined(HAVE_GETPRIORITY) && !defined(PRIO_PROCESS)
#include <sys/resource.h>
#endif
#endif

So why isn't sys/resource.h getting included?

-Barry