tags 518863 +patch
thanks

The package has custom implementations of openpty/forkpty which are ifdef'd out if the system provides them.

Unfortunately the package only ifdefs out the code not the function prototypes. The attatched patch adds ifdefs for the prototypes as well.
diff -ur yasr-0.6.5/yasr/yasr.h yasr-0.6.5.new/yasr/yasr.h
--- yasr-0.6.5/yasr/yasr.h	2003-12-18 21:49:08.000000000 +0000
+++ yasr-0.6.5.new/yasr/yasr.h	2009-04-05 03:29:52.000000000 +0100
@@ -301,7 +301,9 @@
 extern void opt_write(FILE * fp);
 
 /* openpty.c prototypes */
-extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
+#ifndef HAVE_OPENPTY
+  extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
+#endif
 
 /* cfmakeraw.c prototypes */
 extern void cfmakeraw(struct termios *);
@@ -310,7 +312,9 @@
 extern int login_tty(int);
 
 /* forkpty.c prototypes */
-extern int forkpty(int *, char *, struct termios *, struct winsize *);
+#ifndef HAVE_FORKPTY
+  extern int forkpty(int *, char *, struct termios *, struct winsize *);
+#endif
 
 /* tbc - Would it be more efficient to ensure that "blank" grids always held
    ascii 0x20 rather than ascii 0x00? */

Reply via email to