diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-10-19 14:48:03 -0200 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-10-19 14:48:03 -0200 |
commit | 7406b38efa0a2eec5a245839c5ce13b85d51d125 (patch) | |
tree | dc5cb87c2c3e11ad363dfd393b561d2a76b561a1 /mysys | |
parent | be170c213fa285acfb79e06ba249a9bb30155275 (diff) | |
download | mariadb-git-7406b38efa0a2eec5a245839c5ce13b85d51d125.tar.gz |
Bug#45288: pb2 returns a lot of compilation warnings
Ensure that fdatasync is properly declared as on Mac OS X, the
function is available but there is no prototype. Also, port a
fix for a warning from the InnoDB plugin over to the builtin.
configure.in:
Check that fdatasync is declared.
mysys/my_sync.c:
Use fdatasync only if it is declared.
storage/innobase/include/ut0dbg.h:
Port over from the plugin a fix for a warning.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_sync.c b/mysys/my_sync.c index d6ca4f1c1df..7acbccec345 100644 --- a/mysys/my_sync.c +++ b/mysys/my_sync.c @@ -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); |