c++ Patch for inetutils - pty.h

Ralf Habacker Ralf.Habacker@freenet.de
Wed Dec 26 09:28:00 GMT 2001


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



More information about the Cygwin-apps mailing list