Skip to content

Commit 90a0fd5

Browse files
Oblomov, Sergeyroblatham00
authored andcommitted
romio/gpfs: fixed compilation
- stat64 not available on all platforms. use stat() instead: at least on linux glibc will do the right thing under the hood. Change-Id: Ic0bc1c9cf0b141ea7aacb4468ce90146e6b0d1ce Signed-off-by: Rob Latham <[email protected]>
1 parent fced6d0 commit 90a0fd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpi/romio/adio/ad_gpfs/ad_gpfs_open.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ void ADIOI_GPFS_Open(ADIO_File fd, int *error_code)
114114

115115
MPI_Comm_rank(fd->comm, &rank);
116116
if ((rank == fd->hints->ranklist[0]) || (fd->comm == MPI_COMM_SELF)) {
117-
struct stat64 gpfs_statbuf;
117+
struct stat gpfs_statbuf;
118118
/* Get the (real) underlying file system block size */
119-
rc = stat64(fd->filename, &gpfs_statbuf);
119+
rc = stat(fd->filename, &gpfs_statbuf);
120120
if (rc >= 0) {
121121
fd->blksize = gpfs_statbuf.st_blksize;
122122
DBGV_FPRINTF(stderr, "Successful stat '%s'. Blocksize=%ld\n",

0 commit comments

Comments
 (0)