[Patches] [ python-Patches-787189 ] termios module on IRIX

SourceForge.net noreply at sourceforge.net
Fri Oct 31 08:01:59 EST 2003


Patches item #787189, was opened at 2003-08-12 08:45
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=787189&group_id=5470

Category: Modules
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Marc Poinot (poinot)
Assigned to: Nobody/Anonymous (nobody)
Summary: termios module on IRIX

Initial Comment:
The termios.c module includes sys/termios.h 
in which a CTRL macro is present, but not defined
because of the pre-processing switches:

#if (_NO_POSIX && _NO_XOPEN4) || _ABIAPI
#define	CTRL(c)	((c)&037)

Then, the sys/ioctl.h is included (at least by
 termios.c module) and this uses CTRL() macro !
This looks like a problem on the IRIX side, they
should be consistent with their own headers.

The simplest way I found was to add into termios.c
the definition of CTRL:


#if defined(__sgi)
#define	CTRL(c)	((c)&037)
#endif



Has to be put *before* the #include <termios.h>
in Modules/termios.c


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-31 14:01

Message:
Logged In: YES 
user_id=21627

Committed as termios.c 2.37.8.1 and 2.38.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-10-19 00:09

Message:
Logged In: YES 
user_id=21627

In what cases would _ABIAPI be defined?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=787189&group_id=5470



More information about the Patches mailing list