patch-exp_clib_c 711 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-exp_clib_c,v 1.2 2013/05/15 09:46:28 sebastia Exp $
  2. Get rid of implicit declaration of function warnings
  3. --- exp_clib.c.orig Wed Sep 1 00:20:27 2010
  4. +++ exp_clib.c Sun Apr 28 16:41:29 2013
  5. @@ -14,7 +14,9 @@ would appreciate credit if this program or parts of it
  6. # include <inttypes.h>
  7. #endif
  8. #include <sys/types.h>
  9. +#include <sys/wait.h>
  10. #include <sys/ioctl.h>
  11. +#include <unistd.h>
  12. #ifdef TIME_WITH_SYS_TIME
  13. # include <sys/time.h>
  14. @@ -117,6 +119,7 @@ extern unsigned long strtoul _ANSI_ARGS_((CONST char *
  15. #include <tcl.h>
  16. #include "expect.h"
  17. #define TclRegError exp_TclRegError
  18. +extern void exp_init_tty (void);
  19. /*
  20. * regexp code - from tcl8.0.4/generic/regexp.c