Skip to content

Commit 4a79146

Browse files
bosilcajsquyres
authored andcommitted
Fix ROMIO use of PATH_MAX.
We need to discover the existence and then include sys/param.h while using the correctly named MPL defines. Fixes #12108 Signed-off-by: George Bosilca <[email protected]>
1 parent 2621f4f commit 4a79146

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

3rd-party/romio341/mpl/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ if test "$pac_cv_have___typeof" = "yes" ; then
138138
fi
139139

140140
dnl Check if the necessary headers are available
141-
AC_CHECK_HEADERS(stdio.h stdlib.h string.h stdarg.h ctype.h sys/types.h sys/uio.h execinfo.h unistd.h errno.h windows.h sys/mman.h)
141+
AC_CHECK_HEADERS(stdio.h stdlib.h string.h stdarg.h ctype.h sys/types.h sys/uio.h execinfo.h unistd.h errno.h windows.h sys/mman.h sys/param.h)
142142

143143
# A C99 compliant compiler should have inttypes.h for fixed-size int types
144144
AC_CHECK_HEADERS(inttypes.h stdint.h)

3rd-party/romio341/mpl/src/str/mpl_str.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
#include "mpl.h"
77
#include <assert.h>
88

9-
#ifdef HAVE_UNISTD_H
9+
#ifdef MPL_HAVE_UNISTD_H
1010
#include <unistd.h>
1111
#endif
1212

13-
#ifdef HAVE_SYS_TYPES_H
13+
#ifdef MPL_HAVE_SYS_TYPES_H
1414
#include <sys/types.h>
1515
#endif
1616

17-
#ifdef HAVE_TIME_H
17+
#ifdef MPL_HAVE_SYS_PARAM_H
18+
#include <sys/param.h>
19+
#endif
20+
21+
#ifdef MPL_HAVE_TIME_H
1822
#include <time.h>
1923
#endif
2024

0 commit comments

Comments
 (0)