[Patches] [ python-Patches-405092 ] Modules/termios.c on Solaris 2.6/SPARC
nobody
nobody@sourceforge.net
Thu, 01 Mar 2001 01:35:08 -0800
Patches #405092, was updated on 2001-03-01 01:35
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=405092&group_id=5470
Category: Modules
Group: None
Status: Open
Priority: 5
Submitted By: The Written Word (china)
Assigned to: Nobody/Anonymous
Summary: Modules/termios.c on Solaris 2.6/SPARC
Initial Comment:
Modules/termios.c does not build "out of the box" under
Solaris 2.6/SPARC because some values are undefined.
The attached patch fixes this. This leaves one error:
cc -mr -Qn -xO2 -xtarget=generic -I.
-I/opt/build/python-2.1/./Include -IInclude/
-I/usr/local/include -c
/opt/build/python-2.1/Modules/termios.c -o
build/temp.solaris-2.6-sun4u-2.1/termios.o
"/opt/build/python-2.1/Modules/termios.c", line 405:
warning: initializer does not fit or is out of range:
0x80000000
The value of CRTSCTS in <sys/termios.h> is:
#define CRTSCTS 020000000000
which does not fit in a "long":
static struct constant {
char *name;
long value;
} termios_constants[] = {
Changing value to 'unsigned long' fixes this but I do
not know what repercussions this will have.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=405092&group_id=5470