[Patches] [ python-Patches-1203329 ] workaround deprecated ostat structure in <sys/stat.h>
SourceForge.net
noreply at sourceforge.net
Tue May 17 08:02:39 CEST 2005
Patches item #1203329, was opened at 2005-05-17 06:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1203329&group_id=5470
Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: J. J. Snitow (supercusp)
Assigned to: Jack Jansen (jackjansen)
Summary: workaround deprecated ostat structure in <sys/stat.h>
Initial Comment:
This is a patch to python/python/dist/src/Include/pyport.h, CVS
revision 2.70.
On Mac OS X 10.4 (Tiger), the file /usr/include/sys/stat.h contains
the ostat structure, which the in-file comments call "XXX So
deprecated, it would make your head spin". This structure is not
used by the kernel and should not be used by user programs (so the
comments say).
An "#ifndef _POSIX_C_SOURCE" protects #includers of sys/stat.h
from this horrible struct (which doesn't even compile). This patch to
Include/pyport.h makes sure that _POSIX_C_SOURCE is always
defined before including sys/stat.h.
Notably, this patch enables the stock Darwinports port of PyOpenGL
(py-opengl) to compile and run just fine on Tiger.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1203329&group_id=5470
More information about the Patches
mailing list