diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-15 14:06:53 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-15 14:06:53 (GMT) |
commit | 8d80bf4a93a2de494e710eb9719483178ad215e8 (patch) | |
tree | 733fc801d4b04608cd57bc5003a52513c193dc4d /testpar | |
parent | 03a4dd9fc38eba695cb9c169d6879280fc665f3f (diff) | |
download | hdf5-8d80bf4a93a2de494e710eb9719483178ad215e8.zip hdf5-8d80bf4a93a2de494e710eb9719483178ad215e8.tar.gz hdf5-8d80bf4a93a2de494e710eb9719483178ad215e8.tar.bz2 |
[svn-r21228] Added #ifdefs around #include unistd.h and created windows getlogin() function for building HDF5 parallel on windows.
Reviewed and tested locally and tested by user.
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_cache.c | 3 | ||||
-rw-r--r-- | testpar/t_posix_compliant.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c index 3c626d3..8f193cd 100644 --- a/testpar/t_cache.c +++ b/testpar/t_cache.c @@ -49,6 +49,9 @@ hid_t noblock_dxpl_id=(-1); #define NFILENAME 2 #define PARATESTFILE filenames[0] const char *FILENAME[NFILENAME]={"CacheTestDummy", NULL}; +#ifndef PATH_MAX +#define PATH_MAX 512 +#endif /* !PATH_MAX */ char filenames[NFILENAME][PATH_MAX]; hid_t fapl; /* file access property list */ diff --git a/testpar/t_posix_compliant.c b/testpar/t_posix_compliant.c index 960f4c8..1bc0053 100644 --- a/testpar/t_posix_compliant.c +++ b/testpar/t_posix_compliant.c @@ -40,7 +40,9 @@ * mpiexec -np 3 ./t_posix_compliant */ +#ifdef H5_HAVE_UNISTD_H #include <unistd.h> +#endif #include <stdio.h> #include <string.h> #include <stdlib.h> |