From 60f0c81240c91cab9698e91973b6bbc1150d74c7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 18 Dec 2007 00:15:13 +0000 Subject: Stricter check for dirent.d_type validity (possible problems with large file support resulting in reading the wrong part of the structure on Slackware?) --- infrastructure/m4/ax_check_dirent_d_type.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/m4/ax_check_dirent_d_type.m4 b/infrastructure/m4/ax_check_dirent_d_type.m4 index 87b93185..1c0e2ec2 100644 --- a/infrastructure/m4/ax_check_dirent_d_type.m4 +++ b/infrastructure/m4/ax_check_dirent_d_type.m4 @@ -24,7 +24,7 @@ AC_DEFUN([AX_CHECK_DIRENT_D_TYPE], [ DIR* dir = opendir("."); struct dirent* res = NULL; if(dir) res = readdir(dir); - return res ? (res->d_type==DT_UNKNOWN) : 1; + return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; ]])], [have_valid_dirent_d_type=yes], [have_valid_dirent_d_type=no] )]) -- cgit v1.2.3