[Patches] [ python-Patches-650412 ] posixfy some things
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 08 Dec 2002 09:23:20 -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.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-12-08 18:23
Message:
Logged In: YES
user_id=21627
Does the resulting resource.c actually compile? It seems to
be missing an #endif. Please use #elif instead.
Please provide a single patch file, which can be applied with
patch -p0.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=650412&group_id=5470