From 59b53f4037a3bab463f12574e32d0265ac895883 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 23 Dec 2020 17:47:09 +0000 Subject: [PATCH] innodb: dodump/dontdump support for FreeBSD. --- storage/innobase/include/univ.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/storage/innobase/include/univ.i b/storage/innobase/include/univ.i index 162ef8b2e79..2e3fb41555e 100644 --- a/storage/innobase/include/univ.i +++ b/storage/innobase/include/univ.i @@ -104,6 +104,13 @@ support cross-platform development and expose comonly used SQL names. */ #ifndef _WIN32 #include #include /* mmap() for os0proc.cc */ +#ifdef __FreeBSD__ +#ifdef MADV_NOCORE +#define MADV_DONTDUMP MADV_NOCORE +#define MADV_DODUMP MADV_CORE +#define HAVE_MADV_DONTDUMP 1 +#endif +#endif #endif /* !_WIN32 */ /* Include the header file generated by CMake */