This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]