Skip to content

Commit 950713b

Browse files
committed
hurd: Fix build
GNU/Hurd does not impose an IOV_MAX limitation. We'd however rather avoid allocating without any bound and batch with a reasonable size. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
1 parent 6bcb837 commit 950713b

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)