From 92c5462adef87b1e577b8557b6b9c64d5a089544 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 30 Oct 2018 13:12:34 +0800 Subject: idevicebackup2: Fix scan_directory() for platforms not having d_type in struct dirent --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ec210fc..69ff13b 100644 --- a/configure.ac +++ b/configure.ac @@ -83,6 +83,8 @@ case ${host_os} in esac AM_CONDITIONAL(WIN32, test x$win32 = xtrue) +AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include ]) + # Cython Python Bindings AC_ARG_WITH([cython], [AS_HELP_STRING([--without-cython], -- cgit v1.1-32-gdbae