ports/lang/expect/patches/patch-exp_win_c

14 lines
606 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Get rid of implicit declaration of function warning
--- exp_win.c.orig Thu Sep 9 18:41:48 2010
+++ exp_win.c Thu Sep 9 18:42:53 2010
@@ -39,7 +39,7 @@ conflicts with sys/ioctl.h
/* Sigh. On AIX 2.3, termios.h exists but does not define TIOCGWINSZ */
/* Instead, it has to come from ioctl.h. However, As I said above, this */
/* can't be cavalierly included on all machines, even when it exists. */
-#if defined(HAVE_TERMIOS) && !defined(HAVE_TIOCGWINSZ_IN_TERMIOS_H)
+#if (defined(HAVE_TERMIOS) && !defined(HAVE_TIOCGWINSZ_IN_TERMIOS_H)) || defined(__OpenBSD__)
# include <sys/ioctl.h>
#endif