Check for dd_fd in DIR not struct dirent

Pointed out by Ragnnar Sundblad in private mail
This commit is contained in:
Love Hornquist Astrand
2010-03-21 08:58:33 -07:00
parent ad2de1222f
commit fea82013eb

View File

@@ -405,7 +405,7 @@ if test "$ac_rk_have_dirfd" = "yes" ; then
fi
AC_MSG_RESULT($ac_rk_have_dirfd)
AC_HAVE_STRUCT_FIELD(struct dirent, dd_fd, [#include <sys/types.h>
AC_HAVE_STRUCT_FIELD(DIR, dd_fd, [#include <sys/types.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif])