[Python-bugs-list] [ python-Bugs-417802 ] mode_t not appropriate for chmod in BCC
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 26 Apr 2001 12:19:37 -0700
Bugs item #417802, was updated on 2001-04-20 22:49
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417802&group_id=5470
Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Hansen (ixokai)
>Assigned to: Tim Peters (tim_one)
Summary: mode_t not appropriate for chmod in BCC
Initial Comment:
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>
----------------------------------------------------------------------
Comment By: Stephen Hansen (ixokai)
Date: 2001-04-21 19:36
Message:
Logged In: YES
user_id=200343
The below is Python 2.1final, btw. I keep forgetting to
include that.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417802&group_id=5470