Skip to content

Commit bbc317f

Browse files
committed
gcc13 on OSX fails to include the system limits.
The only way to get IOV_MAX (and friends) is to manually include the GCC specific syslimits.h header (sys/syslimits.h would not work either). Fixes #12110 Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
1 parent 6ab6775 commit bbc317f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h \
686686
sys/types.h sys/uio.h sys/un.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \
687687
termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
688688
ifaddrs.h crt_externs.h regex.h mntent.h paths.h \
689-
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h ieee754.h])
689+
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h ieee754.h syslimits.h])
690690

691691
AC_CHECK_HEADERS([sys/mount.h], [], [],
692692
[AC_INCLUDES_DEFAULT

ompi/mca/fbtl/posix/fbtl_posix_preadv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Copyright (c) 2015-2018 Research Organization for Information Science
1414
* and Technology (RIST). All rights reserved.
1515
* Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
16+
* Copyright (c) 2023 NVIDIA Corporation. All rights reserved.
1617
* $COPYRIGHT$
1718
*
1819
* Additional copyrights may follow
@@ -26,6 +27,9 @@
2627
#include "mpi.h"
2728
#include <unistd.h>
2829
#include <limits.h>
30+
#ifdef HAVE_SYSLIMITS_H
31+
#include <syslimits.h>
32+
#endif /* HAVE_SYSLIMITS_H */
2933
#include "ompi/constants.h"
3034
#include "ompi/mca/fbtl/fbtl.h"
3135

ompi/mca/fbtl/posix/fbtl_posix_pwritev.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Copyright (c) 2008-2021 University of Houston. All rights reserved.
1313
* Copyright (c) 2015-2018 Research Organization for Information Science
1414
* and Technology (RIST). All rights reserved.
15+
* Copyright (c) 2023 NVIDIA Corporation. All rights reserved.
1516
* $COPYRIGHT$
1617
*
1718
* Additional copyrights may follow
@@ -25,8 +26,10 @@
2526

2627
#include "mpi.h"
2728
#include <unistd.h>
28-
#include <sys/uio.h>
2929
#include <limits.h>
30+
#ifdef HAVE_SYSLIMITS_H
31+
#include <syslimits.h>
32+
#endif /* HAVE_SYSLIMITS_H */
3033
#include "ompi/constants.h"
3134
#include "ompi/mca/fbtl/fbtl.h"
3235

0 commit comments

Comments
 (0)