From: "Tim Van Holder" To: Subject: [patch] L_ctermid in stdio.h Date: Sat, 20 Jan 2001 13:56:35 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id HAA06337 Reply-To: djgpp-workers AT delorie DOT com currently, this is #define'd away; however, the posix module for Python uses: char buffer[L_ctermid]; which is rejected by the compiler. So I amended stdio.h to define it to 4 (ctermid always returns "con", so 4 seems a good value). Index: stdio.h =================================================================== RCS file: /cvs/djgpp/djgpp/include/stdio.h,v retrieving revision 1.3 diff -u -r1.3 stdio.h --- stdio.h 2000/12/05 14:05:53 1.3 +++ stdio.h 2001/01/20 12:50:43 @@ -108,7 +108,7 @@ #ifndef __STRICT_ANSI__ -#define L_ctermid +#define L_ctermid 4 #define L_cusrid /* #define STREAM_MAX 20 - DOS can change this */