Skip to content

Commit fad3e92

Browse files
authored
Merge pull request #13062 from sthibaul/iov_max
hurd: Fix build
2 parents c0f4876 + 950713b commit fad3e92

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ompi/mca/fbtl/posix/fbtl_posix_preadv.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
#include "ompi/constants.h"
3434
#include "ompi/mca/fbtl/fbtl.h"
3535

36+
#ifndef IOV_MAX
37+
#define IOV_MAX 1024
38+
#endif
3639

3740
static ssize_t mca_fbtl_posix_preadv_datasieving (ompio_file_t *fh, struct flock *lock, int *lock_counter);
3841
static ssize_t mca_fbtl_posix_preadv_generic (ompio_file_t *fh, struct flock *lock, int *lock_counter);

ompi/mca/fbtl/posix/fbtl_posix_pwritev.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
#include "ompi/constants.h"
3434
#include "ompi/mca/fbtl/fbtl.h"
3535

36+
#ifndef IOV_MAX
37+
#define IOV_MAX 1024
38+
#endif
39+
3640
static ssize_t mca_fbtl_posix_pwritev_datasieving (ompio_file_t *fh, struct flock *lock, int *lock_counter );
3741
static ssize_t mca_fbtl_posix_pwritev_generic (ompio_file_t *fh, struct flock *lock, int *lock_counter );
3842
static ssize_t mca_fbtl_posix_pwritev_single (ompio_file_t *fh, struct flock *lock, int *lock_counter );

0 commit comments

Comments
 (0)