--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,7 @@
 m4_ifdef([AC_TYPE_UINT32_T], [AC_TYPE_UINT32_T])
 m4_ifdef([AC_TYPE_UINT64_T], [AC_TYPE_UINT64_T])
 m4_ifdef([AC_TYPE_SSIZE_T], [AC_TYPE_SSIZE_T])
+AC_STRUCT_DIRENT_D_TYPE
 AC_STRUCT_ST_BLOCKS
 AC_HEADER_STDBOOL
 AC_C_BIGENDIAN