This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
c++ Patch for inetutils - pty.h
- From: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- To: "Cygwin-Apps" <cygwin-apps at cygwin dot com>
- Date: Wed, 26 Dec 2001 11:04:01 +0100
- Subject: c++ Patch for inetutils - pty.h
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.Habacker@freenet.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