This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: posixfy some things
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis, marc
Priority: normal Keywords: patch

Created on 2002-12-08 12:48 by marc, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
posix_diffs.tgz marc, 2002-12-08 12:53 diff files
posix_pagesize_flock.diff marc, 2002-12-12 21:06 diff..
Messages (5)
msg41918 - (view) Author: Marc Recht (marc) Date: 2002-12-08 12:48
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.
msg41919 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-12-08 17:23
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.
msg41920 - (view) Author: Marc Recht (marc) Date: 2002-12-12 13:07
Logged In: YES 
user_id=205

- changed to elif
- single patch (-p0)
msg41921 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-12-12 13:27
Logged In: YES 
user_id=21627

Please check the checkbox.
msg41922 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-03-30 17:38
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

configure 1.388
configure.in 1.399
pyconfig.h.in 1.76
resource.c 2.30
History
Date User Action Args
2022-04-10 16:05:58adminsetgithub: 37583
2002-12-08 12:48:39marccreate