[mpich2-commits] r6741 - mpich2/trunk/src/util/mem

buntinas at mcs.anl.gov buntinas at mcs.anl.gov
Tue May 25 14:36:12 CDT 2010


Author: buntinas
Date: 2010-05-25 14:36:12 -0500 (Tue, 25 May 2010)
New Revision: 6741

Modified:
   mpich2/trunk/src/util/mem/strerror.c
Log:
added gnu-version of strerror_r decl.  fixes #1052

Modified: mpich2/trunk/src/util/mem/strerror.c
===================================================================
--- mpich2/trunk/src/util/mem/strerror.c	2010-05-25 18:59:15 UTC (rev 6740)
+++ mpich2/trunk/src/util/mem/strerror.c	2010-05-25 19:36:12 UTC (rev 6741)
@@ -10,8 +10,12 @@
 #include "mpiimpl.h"
 
 #if defined(HAVE_STRERROR_R) && defined(NEEDS_STRERROR_R_DECL)
+#if defined(STRERROR_R_CHAR_P)
+char *strerror_r(int errnum, char *strerrbuf, size_t buflen);
+#else
 int strerror_r(int errnum, char *strerrbuf, size_t buflen);
 #endif
+#endif
 
 /* ideally, provides a thread-safe version of strerror */
 const char *MPIU_Strerror(int errnum)



More information about the mpich2-commits mailing list