www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/12/26/05:07:36

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: "Cygwin-Apps" <cygwin-apps AT cygwin DOT com>
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
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  <Ralf DOT Habacker AT freenet DOT de>

	* 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 <sys/termios.h>

+#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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019