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: mode_t not appropriate for chmod in BCC
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: tim.peters Nosy List: ixokai, tim.peters
Priority: normal Keywords:

Created on 2001-04-21 05:49 by ixokai, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (4)
msg4419 - (view) Author: Stephen Hansen (ixokai) (Python triager) Date: 2001-04-21 05:49
In reference to the 'chmod' definition in 
posixmodule.c (~line 155). Under Borland 
C++5.5, 'mode_t' is defined in sys/types.h as a short, 
and yet io.h defines 'chmod' as taking char* and an 
int, so the compiler gives an error of, "Type mismatch 
in redeclaration of 'chmod'" here.

Since sys/types.h is going to redefine mode_t after 
anything we put into pyport/config, the only way I can 
see to fix this would be to put an #ifdef __BORLANDC__ 
in there.

Now, to go fix all the other errors BC is spitting out 
in that file. <le sigh>
msg4420 - (view) Author: Stephen Hansen (ixokai) (Python triager) Date: 2001-04-22 02:36
Logged In: YES 
user_id=200343

The below is Python 2.1final, btw. I keep forgetting to 
include that.
msg4421 - (view) Author: Stephen Hansen (ixokai) (Python triager) Date: 2001-04-27 05:27
Logged In: YES 
user_id=200343

I submitted a patch (#418147) that corrects this and the 
other problems w/ compiling Borland on Python.
msg4422 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-04-30 22:18
Logged In: YES 
user_id=31435

Superceded by patch 418147.
History
Date User Action Args
2022-04-10 16:03:59adminsetgithub: 34385
2001-04-21 05:49:54ixokaicreate