Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
beb15d9f
Commit
beb15d9f
authored
May 17, 2010
by
Jayesh Krishna
Browse files
[svn-r6657] Check if strerror_r needs decl before adding the decl - Also see r6638 & ticket #1048
parent
47f25b74
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
beb15d9f
...
...
@@ -5132,6 +5132,9 @@ fi
# in MPIU_Strerror (whose implementation is broken if strerror is not found)
AC_CHECK_FUNCS(strerror strncasecmp)
AC_FUNC_STRERROR_R
if test "$ac_cv_func_strerror_r" = "yes" ; then
PAC_FUNC_NEEDS_DECL([#include <string.h>],strerror_r)
fi
# Use snprintf if possible when creating messages
AC_CHECK_FUNCS(snprintf)
...
...
src/util/mem/strerror.c
View file @
beb15d9f
...
...
@@ -9,7 +9,7 @@
* different software packages, perhaps someday by moving it to MPL. */
#include "mpiimpl.h"
#if defined(HAVE_STRERROR_R) &&
!
defined(
HAVE
_STRERROR_R_DECL)
#if defined(HAVE_STRERROR_R) && defined(
NEEDS
_STRERROR_R_DECL)
int
strerror_r
(
int
errnum
,
char
*
strerrbuf
,
size_t
buflen
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment