diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-10-13 22:59:40 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-10-13 16:59:40 -0600 |
commit | 73aeb2ff9b05da69dd92ad674608df424252593c (patch) | |
tree | 7383fe93eb4c73695e4a18dc994d58d7df6b3456 /libiberty/getopt.c | |
parent | f096ce6675c52621eb6b9a7f802129de3c02f8b2 (diff) | |
download | gcc-73aeb2ff9b05da69dd92ad674608df424252593c.zip gcc-73aeb2ff9b05da69dd92ad674608df424252593c.tar.gz gcc-73aeb2ff9b05da69dd92ad674608df424252593c.tar.bz2 |
getopt.c: Check HAVE_STRINGS_H before including strings.h.
* getopt.c: Check HAVE_STRINGS_H before including strings.h.
* configure.in (AC_CHECK_HEADERS): Check for strings.h too.
* config.in, configure: Rebuilt.
From-SVN: r23065
Diffstat (limited to 'libiberty/getopt.c')
-rw-r--r-- | libiberty/getopt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/getopt.c b/libiberty/getopt.c index 9207271..c41531e 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 |