From b22efced5e1d4d822ef6ece24e9b430bdc18d51f Mon Sep 17 00:00:00 2001 From: William Throwe Date: Mon, 14 Sep 2015 16:57:20 -0400 Subject: [PATCH] Search for lstat in sys/stat.h According to the Linux man page, both sys/stat.h and unistd.h are supposed to be included before using lstat, and, at least on some machines, sys/stat.h is actually the necessary one. --- ompi/mca/io/romio314/romio/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/io/romio314/romio/configure.ac b/ompi/mca/io/romio314/romio/configure.ac index 4fc60552c67..7492b816e89 100644 --- a/ompi/mca/io/romio314/romio/configure.ac +++ b/ompi/mca/io/romio314/romio/configure.ac @@ -1720,7 +1720,8 @@ fi AC_CHECK_FUNCS(lstat) if test "$ac_cv_func_lstat" = "yes" ; then # Do we need to declare lstat? - PAC_FUNC_NEEDS_DECL([#include ],lstat) + PAC_FUNC_NEEDS_DECL([#include + #include ],lstat) fi AC_CHECK_FUNCS(readlink) if test "$ac_cv_func_readlink" = "yes" ; then