aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-24 11:37:26 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-24 11:37:26 +0300
commitef4f939a27b2bad56f559d287ffcaf01bb7ebf94 (patch)
tree39c568f7ed529436ea087a405ed5850084cb54cc
parente2c3b3cee22b5e6e1da405f1790ca6da9dd9c73f (diff)
Fix linkage failure on FreeBSD
-rw-r--r--mysql/my_config.h13
1 files changed, 9 insertions, 4 deletions
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