summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-09 07:39:04 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-09 07:39:04 +0000
commitd94b54ec17d1f3bcd80175a4d8cd16a2b8bccdcd (patch)
treef2b78fc2abf190595d4592fcbdc1f1c5c7795e49 /src/stty.c
parent8d51efbab11bef4e26bfd725c0b02c2841dd0c3f (diff)
downloadcoreutils-d94b54ec17d1f3bcd80175a4d8cd16a2b8bccdcd.tar.xz
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
stropt.h -> stropts.h
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stty.c b/src/stty.c
index eabda01c4..9e1ba0a7c 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -36,28 +36,28 @@
#include <stdio.h>
#include <sys/types.h>
+
#if HAVE_TERMIOS_H
# include <termios.h>
#endif
-#ifdef GWINSZ_IN_SYS_IOCTL
+#if HAVE_STROPTS_H
+# include <stropts.h>
+#endif
+#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
+
#ifdef WINSIZE_IN_PTEM
# include <sys/stream.h>
# include <sys/ptem.h>
#endif
#ifdef GWINSZ_IN_SYS_PTY
-# include <sys/ioctl.h>
# include <sys/tty.h>
# include <sys/pty.h>
#endif
#include <getopt.h>
#include <stdarg.h>
-#if HAVE_STROPT_H
-# include <stropt.h>
-#endif
-
#include "system.h"
#include "error.h"
#include "fd-reopen.h"