diff options
| author | Ronald Oussoren <ronaldoussoren@mac.com> | 2008-06-06 21:31:33 (GMT) |
|---|---|---|
| committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2008-06-06 21:31:33 (GMT) |
| commit | 0d236eb05a80c088a15eb68d41eec7f3384dd76e (patch) | |
| tree | 4979d4d29ec96f1375e1d29b0c8ae12f92189aef /Mac/Modules/file/_Filemodule.c | |
| parent | 3f67c43f7874d1a27d11b6cf0240fb9bebbe90bf (diff) | |
| download | cpython-0d236eb05a80c088a15eb68d41eec7f3384dd76e.zip cpython-0d236eb05a80c088a15eb68d41eec7f3384dd76e.tar.gz cpython-0d236eb05a80c088a15eb68d41eec7f3384dd76e.tar.bz2 | |
Fix build issue on OSX 10.4
Diffstat (limited to 'Mac/Modules/file/_Filemodule.c')
| -rw-r--r-- | Mac/Modules/file/_Filemodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c index 8ff007f..352ef64 100644 --- a/Mac/Modules/file/_Filemodule.c +++ b/Mac/Modules/file/_Filemodule.c @@ -7,6 +7,10 @@ #include "pymactoolbox.h" +#ifndef HAVE_MACOS105_SDK +typedef SInt16 FSIORefNum; +#endif + /* Macro to test whether a weak-loaded CFM function exists */ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ PyErr_SetString(PyExc_NotImplementedError, \ @@ -193,10 +197,6 @@ static int FSCatalogInfo_Convert(PyObject *v, FSCatalogInfo *p_itself) static void FSCatalogInfo_dealloc(FSCatalogInfoObject *self) { /* Cleanup of self->ob_itself goes here */ - FSPermissionInfo* info = (FSPermissionInfo*)&(self->ob_itself.permissions); - if (info->fileSec != NULL) { - CFRelease(info->fileSec); - } self->ob_type->tp_free((PyObject *)self); } |
