mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.
This commit is contained in:
commit
9be9ad7b05
3 changed files with 10 additions and 2 deletions
|
@ -299,7 +299,8 @@ CHECK_FUNCTION_EXISTS (dlopen HAVE_DLOPEN)
|
|||
CHECK_FUNCTION_EXISTS (fchmod HAVE_FCHMOD)
|
||||
CHECK_FUNCTION_EXISTS (fcntl HAVE_FCNTL)
|
||||
CHECK_FUNCTION_EXISTS (fconvert HAVE_FCONVERT)
|
||||
CHECK_SYMBOL_EXISTS(fdatasync "unistd.h" HAVE_FDATASYNC)
|
||||
CHECK_FUNCTION_EXISTS (fdatasync HAVE_FDATASYNC)
|
||||
CHECK_SYMBOL_EXISTS(fdatasync "unistd.h" HAVE_DECL_FDATASYNC)
|
||||
CHECK_FUNCTION_EXISTS (fesetround HAVE_FESETROUND)
|
||||
CHECK_FUNCTION_EXISTS (fpsetmask HAVE_FPSETMASK)
|
||||
CHECK_FUNCTION_EXISTS (fseeko HAVE_FSEEKO)
|
||||
|
|
|
@ -2120,6 +2120,13 @@ MYSQL_TYPE_QSORT
|
|||
AC_FUNC_UTIME_NULL
|
||||
AC_FUNC_VPRINTF
|
||||
|
||||
AC_CHECK_DECLS([fdatasync],,,
|
||||
[
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
])
|
||||
|
||||
AC_CHECK_FUNCS(alarm bfill bmove bsearch bzero \
|
||||
chsize cuserid fchmod fcntl \
|
||||
fdatasync fesetround finite fpresetsticky fpsetmask fsync ftruncate \
|
||||
|
|
|
@ -58,7 +58,7 @@ int my_sync(File fd, myf my_flags)
|
|||
/* Some file systems don't support F_FULLFSYNC and fail above: */
|
||||
DBUG_PRINT("info",("fcntl(F_FULLFSYNC) failed, falling back"));
|
||||
#endif
|
||||
#if defined(HAVE_FDATASYNC)
|
||||
#if defined(HAVE_FDATASYNC) && HAVE_DECL_FDATASYNC
|
||||
res= fdatasync(fd);
|
||||
#elif defined(HAVE_FSYNC)
|
||||
res= fsync(fd);
|
||||
|
|
Loading…
Add table
Reference in a new issue