From ef4f939a27b2bad56f559d287ffcaf01bb7ebf94 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 24 Nov 2017 11:37:26 +0300 Subject: Fix linkage failure on FreeBSD --- mysql/my_config.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'mysql') diff --git a/mysql/my_config.h b/mysql/my_config.h index 2265e69..29793bb 100644 --- a/mysql/my_config.h +++ b/mysql/my_config.h @@ -125,8 +125,15 @@ * Specific for Linux. */ #ifdef __linux__ -# define HAVE_MMAP64 1 -# define HAVE_POSIX_TIMERS 1 +# define HAVE_MMAP64 1 +# define HAVE_POSIX_TIMERS 1 + +/* + * The fdatasync() system call appeared in FreeBSD more recently (11.1), so we + * disable it's usage on FreeBSD. + */ +# define HAVE_DECL_FDATASYNC 1 +# define HAVE_FDATASYNC 1 /* * Irrelevant for the client. @@ -148,7 +155,6 @@ # define HAVE_CLOCK_GETTIME 1 # define HAVE_CUSERID 1 # define HAVE_SIGEV_THREAD_ID 1 -# define HAVE_DECL_FDATASYNC 1 #endif /* @@ -182,7 +188,6 @@ # define HAVE_FTRUNCATE 1 # define HAVE_DLOPEN 1 # define HAVE_FCNTL 1 -# define HAVE_FDATASYNC 1 # define HAVE_FSEEKO 1 # define HAVE_FSYNC 1 # define HAVE_GETPASS 1 -- cgit v1.1