ok mmcc@

Edgar Pettijohn wrote:
> Index: cchar.c
> ===================================================================
> RCS file: /cvs/src/bin/stty/cchar.c,v
> retrieving revision 1.11
> diff -u -p -u -r1.11 cchar.c
> --- cchar.c    27 Oct 2009 23:59:22 -0000    1.11
> +++ cchar.c    16 Mar 2016 23:53:58 -0000
> @@ -30,6 +30,7 @@
>   * SUCH DAMAGE.
>   */
> 
> +#include <sys/ioctl.h>
>  #include <sys/types.h>
> 
>  #include <err.h>
> @@ -37,6 +38,7 @@
>  #include <stddef.h>
>  #include <stdlib.h>
>  #include <string.h>
> +#include <termios.h>
> 
>  #include "stty.h"
>  #include "extern.h"
> Index: gfmt.c
> ===================================================================
> RCS file: /cvs/src/bin/stty/gfmt.c,v
> retrieving revision 1.8
> diff -u -p -u -r1.8 gfmt.c
> --- gfmt.c    28 Oct 2009 07:12:59 -0000    1.8
> +++ gfmt.c    16 Mar 2016 23:54:29 -0000
> @@ -35,6 +35,7 @@
>  #include <err.h>
>  #include <stdio.h>
>  #include <string.h>
> +#include <termios.h>
> 
>  #include "stty.h"
>  #include "extern.h"
> Index: key.c
> ===================================================================
> RCS file: /cvs/src/bin/stty/key.c,v
> retrieving revision 1.16
> diff -u -p -u -r1.16 key.c
> --- key.c    20 Nov 2015 15:57:39 -0000    1.16
> +++ key.c    16 Mar 2016 23:55:51 -0000
> @@ -30,14 +30,16 @@
>   * SUCH DAMAGE.
>   */
> 
> +#include <sys/ioctl.h>
>  #include <sys/types.h>
> 
>  #include <err.h>
>  #include <errno.h>
> -#include <stdlib.h>
>  #include <limits.h>
>  #include <stdio.h>
> +#include <stdlib.h>
>  #include <string.h>
> +#include <termios.h>
> 
>  #include "stty.h"
>  #include "extern.h"
> Index: modes.c
> ===================================================================
> RCS file: /cvs/src/bin/stty/modes.c,v
> retrieving revision 1.10
> diff -u -p -u -r1.10 modes.c
> --- modes.c    27 Oct 2009 23:59:22 -0000    1.10
> +++ modes.c    16 Mar 2016 23:56:40 -0000
> @@ -31,8 +31,11 @@
>   */
> 
>  #include <sys/types.h>
> +
>  #include <stddef.h>
>  #include <string.h>
> +#include <termios.h>
> +
>  #include "stty.h"
>  #include "extern.h"
> 
> Index: print.c
> ===================================================================
> RCS file: /cvs/src/bin/stty/print.c,v
> retrieving revision 1.13
> diff -u -p -u -r1.13 print.c
> --- print.c    27 Oct 2009 23:59:22 -0000    1.13
> +++ print.c    16 Mar 2016 23:57:24 -0000
> @@ -35,6 +35,7 @@
>  #include <stddef.h>
>  #include <stdio.h>
>  #include <string.h>
> +#include <termios.h>
> 
>  #include "stty.h"
>  #include "extern.h"
> Index: stty.c
> ===================================================================
> RCS file: /cvs/src/bin/stty/stty.c,v
> retrieving revision 1.18
> diff -u -p -u -r1.18 stty.c
> --- stty.c    20 Nov 2015 15:58:28 -0000    1.18
> +++ stty.c    16 Mar 2016 23:58:14 -0000
> @@ -30,16 +30,18 @@
>   * SUCH DAMAGE.
>   */
> 
> +#include <sys/ioctl.h>
>  #include <sys/types.h>
> 
>  #include <ctype.h>
>  #include <err.h>
>  #include <errno.h>
>  #include <fcntl.h>
> +#include <limits.h>
>  #include <stdio.h>
>  #include <stdlib.h>
> -#include <limits.h>
>  #include <string.h>
> +#include <termios.h>
>  #include <unistd.h>
> 
>  #include "stty.h"
> Index: stty.h
> ===================================================================
> RCS file: /cvs/src/bin/stty/stty.h,v
> retrieving revision 1.4
> diff -u -p -u -r1.4 stty.h
> --- stty.h    2 Jun 2003 23:32:09 -0000    1.4
> +++ stty.h    16 Mar 2016 23:52:41 -0000
> @@ -32,9 +32,6 @@
>   *    @(#)stty.h    8.1 (Berkeley) 5/31/93
>   */
> 
> -#include <sys/ioctl.h>
> -#include <termios.h>
> -
>  struct info {
>      int fd;                    /* file descriptor */
>      int ldisc;                /* line discipline */
> 

Reply via email to