Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT cygwin DOT com From: "Ralf Habacker" To: "Cygwin-Apps" Subject: c++ Patch for inetutils - pty.h Date: Wed, 26 Dec 2001 11:04:01 +0100 Message-ID: <000001c18df4$a4eac330$526307d5@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi, the include file pty.h from the inetutils package is currently not c++ save. The following patch enable this. ------ Changelog ----------------------------------------- 2001-12-27 Ralf Habacker * pty.h: Changed file to become C++ clean. ------- Patch -------------------------------------------- $ diff /usr/include/pty.h.orig /usr/include/pty.h -up --- /usr/include/pty.h.orig Wed Dec 26 08:40:07 2001 +++ /usr/include/pty.h Wed Dec 26 08:40:29 2001 @@ -4,7 +4,15 @@ #include <_ansi.h> #include +#ifdef __cplusplus +extern "C" { +#endif + int _EXFUN(openpty ,(int *, int *, char *, struct termios *, struct winsize *)); int _EXFUN(forkpty ,(int *, char *, struct termios *, struct winsize *)); + +#ifdef __cplusplus +} +#endif #endif /* __PTY_H__ */ --------------------------------------------------------- Regards Ralf