summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"