diff options
author | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-03 22:35:13 +0000 |
---|---|---|
committer | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-03 22:35:13 +0000 |
commit | ab7cd804d13cec9d2e6247dced88286f8f4d8871 (patch) | |
tree | 27d45ff18c9d1dc83f9279746902ec71b0543b8c /libgomp/env.c | |
parent | c44b377269e53050e15ced600e4ffa31715040a9 (diff) | |
download | gcc-ab7cd804d13cec9d2e6247dced88286f8f4d8871.tar.gz |
2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
PR libgomp/33131
* configure.ac: Add ACX_HEADER_STRING.
* env.c: Include strings.h.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132844 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/env.c')
-rw-r--r-- | libgomp/env.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libgomp/env.c b/libgomp/env.c index 4a07bfa4975..6c6a35228eb 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -32,7 +32,18 @@ #include "libgomp_f.h" #include <ctype.h> #include <stdlib.h> -#include <string.h> +#ifdef STRING_WITH_STRINGS +# include <string.h> +# include <strings.h> +#else +# ifdef HAVE_STRING_H +# include <string.h> +# else +# ifdef HAVE_STRINGS_H +# include <strings.h> +# endif +# endif +#endif #include <limits.h> #include <errno.h> |