Ignore scandir() check on mingw
This commit is contained in:
parent
0907589a79
commit
ab5b535704
|
@ -161,8 +161,9 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([HAVE_POSIX_FADVISE], [1], [Define to 1 if you have the 'posix_fadvise' function.])
|
AC_DEFINE([HAVE_POSIX_FADVISE], [1], [Define to 1 if you have the 'posix_fadvise' function.])
|
||||||
],[AC_MSG_RESULT([no])])
|
],[AC_MSG_RESULT([no])])
|
||||||
AC_MSG_CHECKING([for scandir])
|
if test "$os_win32" = "no"; then
|
||||||
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
AC_MSG_CHECKING([for scandir])
|
||||||
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
int comp(const struct dirent **, const struct dirent **);
|
int comp(const struct dirent **, const struct dirent **);
|
||||||
int comp(const struct dirent **a, const struct dirent **b) { return 0; }
|
int comp(const struct dirent **a, const struct dirent **b) { return 0; }
|
||||||
|
@ -190,6 +191,7 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
*** No scandir function available.])
|
*** No scandir function available.])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
fi
|
||||||
CFLAGS="$fc_saved_CFLAGS"
|
CFLAGS="$fc_saved_CFLAGS"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue