diff options
Diffstat (limited to 'infrastructure/m4/ax_check_dirent_d_type.m4')
-rw-r--r-- | infrastructure/m4/ax_check_dirent_d_type.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
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] )]) |