2010-08-04 Robert Millan <rmh@gnu.org>
* configure.ac: Remove checks for getfsstat() and getmntany(). Add checks for `<sys/param.h>' and `<sys/mount.h>'. * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'. [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'. [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove function. (grub_find_zpool_from_dir): Use statfs() instead of indirect matching via find_mount_point_from_dir() and getfsstat() / getmntany().
This commit is contained in:
parent
0de22aa997
commit
d3dd9e80f6
3 changed files with 23 additions and 111 deletions
|
@ -247,8 +247,8 @@ else
|
|||
fi
|
||||
|
||||
# Check for functions and headers.
|
||||
AC_CHECK_FUNCS(posix_memalign memalign asprintf vasprintf getfsstat getmntany)
|
||||
AC_CHECK_HEADERS(libzfs.h libnvpair.h)
|
||||
AC_CHECK_FUNCS(posix_memalign memalign asprintf vasprintf)
|
||||
AC_CHECK_HEADERS(libzfs.h libnvpair.h sys/param.h sys/mount.h)
|
||||
|
||||
# For opendisk() and getrawpartition() on NetBSD.
|
||||
# Used in util/deviceiter.c and in util/hostdisk.c.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue