patch-pty_termios_c 843 B

123456789101112131415161718192021222324252627
  1. $OpenBSD: patch-pty_termios_c,v 1.2 2013/05/15 09:46:28 sebastia Exp $
  2. fix explicit declaration of function openpty
  3. --- pty_termios.c.orig Fri Aug 27 23:51:53 2010
  4. +++ pty_termios.c Sun Apr 28 17:04:37 2013
  5. @@ -16,6 +16,8 @@ would appreciate credit if you use this file or parts
  6. #include "expect_cf.h"
  7. +extern char * expErrnoMsg(int);
  8. +
  9. /*
  10. The following functions are linked from the Tcl library. They
  11. don't cause anything else in the library to be dragged in, so it
  12. @@ -43,6 +45,10 @@ According to Ashley Pittman <ashley@ilo.dec.com>, Digi
  13. with openpty which supports 4000 while ptmx supports 60. */
  14. #if defined(HAVE_OPENPTY) && defined(HAVE_PTMX)
  15. #undef HAVE_PTMX
  16. +#endif
  17. +#if defined(HAVE_OPENPTY) && defined(__OpenBSD__)
  18. +#include <termios.h>
  19. +#include <util.h>
  20. #endif
  21. #if defined(HAVE_PTYM) && defined(HAVE_PTMX)