summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-08 22:54:40 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-08 22:54:40 +0000
commit137c1c2208d475ef21559109e303b8152c37dbec (patch)
tree409c3440dbdeb82f4d30156295952c7519857697 /src
parentdb7d10bd9d755f4dfbd45aac780bca6b9dd10626 (diff)
downloadcoreutils-137c1c2208d475ef21559109e303b8152c37dbec.tar.xz
Include stropt.h if available.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
-rw-r--r--src/stty.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ls.c b/src/ls.c
index efbd6ef60..8365e5286 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -60,6 +60,10 @@
#include <getopt.h>
#include <signal.h>
+#if HAVE_STROPT_H
+# include <stropt.h>
+#endif
+
/* Use SA_NOCLDSTOP as a proxy for whether the sigaction machinery is
present. */
#ifndef SA_NOCLDSTOP
diff --git a/src/stty.c b/src/stty.c
index 47499addc..eabda01c4 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -54,6 +54,10 @@
#include <getopt.h>
#include <stdarg.h>
+#if HAVE_STROPT_H
+# include <stropt.h>
+#endif
+
#include "system.h"
#include "error.h"
#include "fd-reopen.h"