[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.1-25-g034b37d
Service Account
noreply at mpich.org
Fri Jun 20 16:35:46 CDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".
The branch, master has been updated
via 034b37d189d0082292a8b861c21e1c3bfb61855b (commit)
from bfdad82283520038a8abad059ef637442321b93b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/034b37d189d0082292a8b861c21e1c3bfb61855b
commit 034b37d189d0082292a8b861c21e1c3bfb61855b
Author: Rob Latham <robl at mcs.anl.gov>
Date: Fri Jun 20 11:05:05 2014 -0500
Lustre used constants w/o header file
If we are going to use UINT_MAX and USHRT_MAX, something needs to
bring in limits.h. Martin Audet <Martin.Audet at nrc-cnrc.gc.ca> reported
a build failure because we did not include limits.h. In addition to his
one-line patch I threw in a configure-time check just in case.
diff --git a/src/mpi/romio/adio/ad_lustre/ad_lustre_hints.c b/src/mpi/romio/adio/ad_lustre/ad_lustre_hints.c
index a6e87e8..051cfb0 100644
--- a/src/mpi/romio/adio/ad_lustre/ad_lustre_hints.c
+++ b/src/mpi/romio/adio/ad_lustre/ad_lustre_hints.c
@@ -11,6 +11,9 @@
#include "ad_lustre.h"
#include "adio_extern.h"
#include "hint_fns.h"
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
void ADIOI_LUSTRE_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code)
{
diff --git a/src/mpi/romio/configure.ac b/src/mpi/romio/configure.ac
index df13053..6da8836 100644
--- a/src/mpi/romio/configure.ac
+++ b/src/mpi/romio/configure.ac
@@ -437,7 +437,7 @@ AC_TYPE_OFF_T
# Header files
# Find the CPP before the header check
AC_PROG_CPP
-AC_CHECK_HEADERS([unistd.h fcntl.h malloc.h stddef.h sys/types.h])
+AC_CHECK_HEADERS([unistd.h fcntl.h malloc.h stddef.h sys/types.h limits.h])
AC_CHECK_HEADERS(mpix.h,,,[#include <mpi.h>])
#
-----------------------------------------------------------------------
Summary of changes:
src/mpi/romio/adio/ad_lustre/ad_lustre_hints.c | 3 +++
src/mpi/romio/configure.ac | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
MPICH primary repository
More information about the commits
mailing list