summaryrefslogtreecommitdiff
path: root/contrib/gcc/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/getopt.c')
-rw-r--r--contrib/gcc/getopt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gcc/getopt.c b/contrib/gcc/getopt.c
index 920727114151..c41531e667d8 100644
--- a/contrib/gcc/getopt.c
+++ b/contrib/gcc/getopt.c
@@ -204,7 +204,9 @@ static char *posixly_correct;
# if HAVE_STRING_H
# include <string.h>
# else
-# include <strings.h>
+# if HAVE_STRINGS_H
+# include <strings.h>
+# endif
# endif
/* Avoid depending on library functions or files