Skip to content

Commit a552c08

Browse files
committed
Merge pull request open-mpi#604 from hjelmn/v2.x_romio_fix
ROMIO configure looks for lstat in wrong header
2 parents 3dbf04a + f8adf54 commit a552c08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/io/romio314/romio/configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,8 @@ fi
17201720
AC_CHECK_FUNCS(lstat)
17211721
if test "$ac_cv_func_lstat" = "yes" ; then
17221722
# Do we need to declare lstat?
1723-
PAC_FUNC_NEEDS_DECL([#include <unistd.h>],lstat)
1723+
PAC_FUNC_NEEDS_DECL([#include <unistd.h>
1724+
#include <sys/stat.h>],lstat)
17241725
fi
17251726
AC_CHECK_FUNCS(readlink)
17261727
if test "$ac_cv_func_readlink" = "yes" ; then

0 commit comments

Comments
 (0)