summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-12-10 00:20:17 +0000
committerJim Meyering <jim@meyering.net>1996-12-10 00:20:17 +0000
commitba788477a873be30b5ce39b51a8f01e85069bf0d (patch)
treedfdc07b0080a607fd14e6d2dbc809bf001de4f30 /src
parent6846ffa9d9f622d5a240c4c23a9bf788713bcafd (diff)
downloadcoreutils-ba788477a873be30b5ce39b51a8f01e85069bf0d.tar.xz
Include config.h before testing for TERMIOS_NEEDS_XOPEN_SOURCE.
Patch from Karl Heuer.
Diffstat (limited to 'src')
-rw-r--r--src/stty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c
index de60ac431..a8902f0d3 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -27,11 +27,12 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
+#include <config.h>
+
#ifdef TERMIOS_NEEDS_XOPEN_SOURCE
# define _XOPEN_SOURCE
#endif
-#include <config.h>
#include <stdio.h>
#include <sys/types.h>
#include <termios.h>