mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
build: use gnulib fdatasync
Commit 1726a73 hacked around MacOS' lack of fdatasync, since gnulib did not have it at the time. But now that we use newer gnulib, we can avoid the hack. * bootstrap.conf (gnulib_modules): Add fdatasync. * configure.ac (AC_CHECK_FUNCS_ONCE): Drop our own check.
This commit is contained in:
parent
806d4d8140
commit
9cf70dad0f
@ -40,6 +40,7 @@ environ
|
|||||||
fclose
|
fclose
|
||||||
fcntl
|
fcntl
|
||||||
fcntl-h
|
fcntl-h
|
||||||
|
fdatasync
|
||||||
ffs
|
ffs
|
||||||
fnmatch
|
fnmatch
|
||||||
fsync
|
fsync
|
||||||
|
@ -135,12 +135,9 @@ AC_CHECK_SIZEOF([long])
|
|||||||
|
|
||||||
dnl Availability of various common functions (non-fatal if missing),
|
dnl Availability of various common functions (non-fatal if missing),
|
||||||
dnl and various less common threadsafe functions
|
dnl and various less common threadsafe functions
|
||||||
AC_CHECK_FUNCS_ONCE([cfmakeraw fdatasync geteuid getgid getgrnam_r getmntent_r \
|
AC_CHECK_FUNCS_ONCE([cfmakeraw geteuid getgid getgrnam_r getmntent_r \
|
||||||
getpwuid_r getuid initgroups kill mmap posix_fallocate posix_memalign \
|
getpwuid_r getuid initgroups kill mmap posix_fallocate posix_memalign \
|
||||||
regexec sched_getaffinity])
|
regexec sched_getaffinity])
|
||||||
if test $ac_cv_func_fdatasync = no; then
|
|
||||||
AC_DEFINE([fdatasync], [fsync], [Define to fsync if you lack fdatasync])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Availability of pthread functions (if missing, win32 threading is
|
dnl Availability of pthread functions (if missing, win32 threading is
|
||||||
dnl assumed). Because of $LIB_PTHREAD, we cannot use AC_CHECK_FUNCS_ONCE.
|
dnl assumed). Because of $LIB_PTHREAD, we cannot use AC_CHECK_FUNCS_ONCE.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user