--- Thunar-0.1.2svn-r00119.orig/configure.in 2005-10-28 05:21:13.000000000 +0900 +++ Thunar-0.1.2svn-r00119/configure.in 2005-10-28 12:59:46.402387954 +0900 @@ -85,7 +85,7 @@ dnl *** Check for standard functions *** dnl ************************************ AC_FUNC_MMAP() -AC_CHECK_FUNCS([attropen extattr_get_fd fgetxattr lchmod localtime_r readdir_r \ +AC_CHECK_FUNCS([attropen dirfd extattr_get_fd fgetxattr lchmod localtime_r readdir_r \ setgroupent setpassent]) dnl *************************************** --- Thunar-0.1.2svn-r00119.orig/thunar-vfs/thunar-vfs-scandir.c 2005-10-19 23:28:01.000000000 +0900 +++ Thunar-0.1.2svn-r00119/thunar-vfs/thunar-vfs-scandir.c 2005-10-28 13:18:31.086443485 +0900 @@ -263,8 +263,10 @@ struct stat lstatb; /* stat the just opened directory */ + #ifdef HAVE_DIRFD if (fstat (dirfd (dirp), &fstatb) < 0) goto error; + #endif /* HAVE_DIRFD */ /* stat the path (without following links) */ if (lstat (handle->fname, &lstatb) < 0)