7 Bug-Reported-by: Dan Price <dp@eng.sun.com>
8 Bug-Reference-ID: <20090324171502.GA20582@eng.sun.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00184.html
13 A missing include file results in an empty function definition and a no-op
14 when checking whether or not the window size has changed.
18 *** ../bash-4.0-patched/lib/sh/winsize.c 2008-08-12 13:53:51.000000000 -0400
19 --- lib/sh/winsize.c 2009-04-06 10:44:20.000000000 -0400
22 #include <sys/ioctl.h>
24 ! #if !defined (STRUCT_WINSIZE_IN_SYS_IOCTL)
25 ! /* For struct winsize on SCO */
26 ! /* sys/ptem.h has winsize but needs mblk_t from sys/stream.h */
27 ! # if defined (HAVE_SYS_PTEM_H) && defined (TIOCGWINSZ) && defined (SIGWINCH)
28 ! # if defined (HAVE_SYS_STREAM_H)
29 ! # include <sys/stream.h>
31 # include <sys/ptem.h>
32 ! # endif /* HAVE_SYS_PTEM_H && TIOCGWINSZ && SIGWINCH */
33 ! #endif /* !STRUCT_WINSIZE_IN_SYS_IOCTL */
37 #include <sys/ioctl.h>
39 ! /* Try to find the definitions of `struct winsize' and TIOGCWINSZ */
41 ! #if defined (GWINSZ_IN_SYS_IOCTL) && !defined (TIOCGWINSZ)
42 ! # include <sys/ioctl.h>
43 ! #endif /* GWINSZ_IN_SYS_IOCTL && !TIOCGWINSZ */
45 ! #if defined (STRUCT_WINSIZE_IN_TERMIOS) && !defined (STRUCT_WINSIZE_IN_SYS_IOCTL)
46 ! # include <termios.h>
47 ! #endif /* STRUCT_WINSIZE_IN_TERMIOS && !STRUCT_WINSIZE_IN_SYS_IOCTL */
49 ! /* Not in either of the standard places, look around. */
50 ! #if !defined (STRUCT_WINSIZE_IN_TERMIOS) && !defined (STRUCT_WINSIZE_IN_SYS_IOCTL)
51 ! # if defined (HAVE_SYS_STREAM_H)
52 ! # include <sys/stream.h>
53 ! # endif /* HAVE_SYS_STREAM_H */
54 ! # if defined (HAVE_SYS_PTEM_H) /* SVR4.2, at least, has it here */
55 # include <sys/ptem.h>
56 ! # define _IO_PTEM_H /* work around SVR4.2 1.1.4 bug */
57 ! # endif /* HAVE_SYS_PTEM_H */
58 ! # if defined (HAVE_SYS_PTE_H) /* ??? */
59 ! # include <sys/pte.h>
60 ! # endif /* HAVE_SYS_PTE_H */
61 ! #endif /* !STRUCT_WINSIZE_IN_TERMIOS && !STRUCT_WINSIZE_IN_SYS_IOCTL */
64 *** ../bash-4.0/patchlevel.h 2009-01-04 14:32:40.000000000 -0500
65 --- patchlevel.h 2009-02-22 16:11:31.000000000 -0500
68 looks for to find the patch level (for the sccs version string). */
70 ! #define PATCHLEVEL 17
72 #endif /* _PATCHLEVEL_H_ */
74 looks for to find the patch level (for the sccs version string). */
76 ! #define PATCHLEVEL 18
78 #endif /* _PATCHLEVEL_H_ */