Skip to content

Commit

Permalink
Fix detection of statfs()
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Jul 20, 2015
1 parent 8c1090e commit 327d991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ if test "$ac_cv_func_dirname" = yes ; then
fi

AC_CACHE_CHECK(for BSD statfs(const char *path, struct statfs *buf),
ac_cv_func_dirname,
ac_cv_func_statfs,
[ac_save_CFLAGS="$CFLAGS"
CFLAGS="-Werror $CFLAGS"
AC_TRY_COMPILE([#include <sys/param.h>
#include <sys/mount.h>],
[static int *(*ac_test_statfs)(const char *path, struct statfs *buf) = statfs; ac_test_statfs("");],
[struct statfs stfs; static int (*ac_test_statfs)(const char *path, struct statfs *buf) = statfs; ac_test_statfs("", &stfs);],
[ac_cv_func_statfs=yes],
[ac_cv_func_statfs=no])
CFLAGS="$ac_save_CFLAGS"])
Expand Down

0 comments on commit 327d991

Please sign in to comment.