summaryrefslogtreecommitdiffstats
path: root/extra/mariabackup/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mariabackup/common.h')
-rw-r--r--extra/mariabackup/common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/extra/mariabackup/common.h b/extra/mariabackup/common.h
index 89b189e3..6fde514e 100644
--- a/extra/mariabackup/common.h
+++ b/extra/mariabackup/common.h
@@ -23,7 +23,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
#include <my_global.h>
#include <mysql_version.h>
-#include <fcntl.h>
#include <stdarg.h>
#include <my_sys.h>
@@ -143,7 +142,7 @@ static inline ATTRIBUTE_FORMAT(printf, 1,2) ATTRIBUTE_NORETURN void die(const ch
# define POSIX_FADV_NORMAL
# define POSIX_FADV_SEQUENTIAL
# define POSIX_FADV_DONTNEED
-# define posix_fadvise(a,b,c,d) do {} while(0)
+# define posix_fadvise(fd, offset, len, advice) do { (void)offset; } while(0)
#endif
/***********************************************************************