[mpich] MPICH primary repository branch, master, updated. v3.1.1-76-gc34a010
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 c34a0106a77b4908acdb8b3776e3adf29ad90fc9 (commit) from d42c43f3f9f5f233ceef34a685b40e765aa4d79d (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/c34a0106a77b4908acdb8b3776e3adf29a... commit c34a0106a77b4908acdb8b3776e3adf29ad90fc9 Author: Ken Raffenetti <[email protected]> Date: Tue Jul 1 11:11:57 2014 -0500 Solaris build fix for non-strict compile A previous commit [33d82829] increased the feature level in files using pread/pwrite functions to strictly adhere to the C99 standard. The fix inadvertantly caused failed builds when C99 was not enabled on Solaris. Now we conditionally raise the feature level depending on the strictness of the build. Signed-off-by: Rob Latham <[email protected]> diff --git a/src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c b/src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c index dbe2255..5f1c232 100644 --- a/src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c +++ b/src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c @@ -8,7 +8,11 @@ * Copyright (C) 2008 Sun Microsystems, Lustre group */ +#ifdef _STDC_C99 #define _XOPEN_SOURCE 600 +#else +#define _XOPEN_SOURCE 500 +#endif #include <unistd.h> #include <stdlib.h> diff --git a/src/mpi/romio/adio/ad_xfs/ad_xfs.h b/src/mpi/romio/adio/ad_xfs/ad_xfs.h index cbddbbb..1a4d4cc 100644 --- a/src/mpi/romio/adio/ad_xfs/ad_xfs.h +++ b/src/mpi/romio/adio/ad_xfs/ad_xfs.h @@ -8,7 +8,11 @@ #ifndef AD_XFS_INCLUDE #define AD_XFS_INCLUDE +#ifdef _STDC_C99 #define _XOPEN_SOURCE 600 +#else +#define _XOPEN_SOURCE 500 +#endif #include <unistd.h> #include <sys/types.h> #include <fcntl.h> diff --git a/src/mpi/romio/adio/common/ad_read.c b/src/mpi/romio/adio/common/ad_read.c index dc0d773..b03f69b 100644 --- a/src/mpi/romio/adio/common/ad_read.c +++ b/src/mpi/romio/adio/common/ad_read.c @@ -6,7 +6,11 @@ */ +#ifdef _STDC_C99 #define _XOPEN_SOURCE 600 +#else +#define _XOPEN_SOURCE 500 +#endif #include <unistd.h> #include "adio.h" diff --git a/src/mpi/romio/adio/common/ad_write.c b/src/mpi/romio/adio/common/ad_write.c index 4a6c445..129cb1c 100644 --- a/src/mpi/romio/adio/common/ad_write.c +++ b/src/mpi/romio/adio/common/ad_write.c @@ -6,7 +6,11 @@ */ +#ifdef _STDC_C99 #define _XOPEN_SOURCE 600 +#else +#define _XOPEN_SOURCE 500 +#endif #include <unistd.h> #include "adio.h" ----------------------------------------------------------------------- Summary of changes: src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c | 4 ++++ src/mpi/romio/adio/ad_xfs/ad_xfs.h | 4 ++++ src/mpi/romio/adio/common/ad_read.c | 4 ++++ src/mpi/romio/adio/common/ad_write.c | 4 ++++ 4 files changed, 16 insertions(+), 0 deletions(-) hooks/post-receive -- MPICH primary repository
participants (1)
-
noreply@mpich.org