summaryrefslogtreecommitdiffstats
path: root/perform/benchpar.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-09-06 14:25:19 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-09-06 14:25:19 (GMT)
commit144b1294921aa9ed8dd29e17f3e5c97a3fb66568 (patch)
tree758071c7c14abb57d4a3226bd850693e2fa4d2fc /perform/benchpar.c
parenta14f6882d41067156bb33dd9aab638e73cf91245 (diff)
downloadhdf5-144b1294921aa9ed8dd29e17f3e5c97a3fb66568.zip
hdf5-144b1294921aa9ed8dd29e17f3e5c97a3fb66568.tar.gz
hdf5-144b1294921aa9ed8dd29e17f3e5c97a3fb66568.tar.bz2
[svn-r21365] Related files to files from HDF5-33 review - all changes ran correctly in trunk. Changes have been tested in cmake branch.
#ifdef around include <unistd.h> and <time.h> Tested: local linux
Diffstat (limited to 'perform/benchpar.c')
-rw-r--r--perform/benchpar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/perform/benchpar.c b/perform/benchpar.c
index 035e9d6..bf75d77 100644
--- a/perform/benchpar.c
+++ b/perform/benchpar.c
@@ -13,7 +13,9 @@
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+#ifdef H5_HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <stdlib.h>
#include <assert.h>
#include <math.h>
@@ -115,13 +117,13 @@ static hid_t create_fapl(MPI_Comm comm, MPI_Info info, int acc_type )
/* set parallel access with communicator, using MPI-I/O driver */
if (acc_type == FACC_MPIO) {
- ret = H5Pset_fapl_mpio(fapl, comm, info);
+ ret = H5Pset_fapl_mpio(fapl, comm, info);
assert(ret>=0);
} /* end if */
/* set parallel access with communicator, using MPI-posix driver */
if (acc_type == FACC_MPIPOSIX) {
- ret = H5Pset_fapl_mpiposix(fapl, comm, use_gpfs);
+ ret = H5Pset_fapl_mpiposix(fapl, comm, use_gpfs);
assert(ret>=0);
} /* end if */
@@ -312,7 +314,7 @@ int main(int argc, char *argv[])
char *login; /* Pointer to login name */
/* Get the login name for this user */
- login=getlogin();
+ login=HDgetlogin();
if(login==NULL)
login=DEFAULT_USERNAME;