[Patches] [ python-Patches-650412 ] posixfy some things

noreply@sourceforge.net noreply@sourceforge.net
Sun, 08 Dec 2002 04:48:40 -0800


Patches item #650412, was opened at 2002-12-08 13:48
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=650412&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Nobody/Anonymous (nobody)
Summary: posixfy some things

Initial Comment:
Add special check for flock, since it isn't a POSIX function. This avoids a implicit declaration on FreeBSD 5. (It's present in the libc, but undefined because of POSIX_C_SOURCE.)
Add a new check for getpagesize. It isn't a POSIX function either and needs the same treatment as flock.
Changed resources.c so it uses getpagesize only if it's available. Else it tries to use sysconf. It none of the two is available it returns 0.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=650412&group_id=5470