summaryrefslogtreecommitdiff
path: root/libiberty/getopt.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 22:59:40 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 22:59:40 +0000
commit5dfe2c03cd9b3caa8ab8405bdf6ce652e47ae0a4 (patch)
tree7383fe93eb4c73695e4a18dc994d58d7df6b3456 /libiberty/getopt.c
parent9bf67ab7403e2c9858fb06da170f06a5c094c0ce (diff)
downloadgcc-5dfe2c03cd9b3caa8ab8405bdf6ce652e47ae0a4.tar.gz
* getopt.c: Check HAVE_STRINGS_H before including strings.h.
* configure.in (AC_CHECK_HEADERS): Check for strings.h too. * config.in, configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/getopt.c')
-rw-r--r--libiberty/getopt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/getopt.c b/libiberty/getopt.c
index 92072711415..c41531e667d 100644
--- a/libiberty/getopt.c
+++ b/libiberty/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