summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/disks/CMakeLists.txt6
-rw-r--r--plugin/type_mysql_json/type.cc2
2 files changed, 5 insertions, 3 deletions
diff --git a/plugin/disks/CMakeLists.txt b/plugin/disks/CMakeLists.txt
index 446c64d0fdd..d0f34b04027 100644
--- a/plugin/disks/CMakeLists.txt
+++ b/plugin/disks/CMakeLists.txt
@@ -1,5 +1,7 @@
-IF("${CMAKE_SYSTEM}" MATCHES "Linux")
+INCLUDE (CheckIncludeFiles)
+CHECK_INCLUDE_FILES ("sys/statvfs.h;mntent.h" INFO_HEADERS LANGUAGE CXX)
+
+IF (INFO_HEADERS)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql)
MYSQL_ADD_PLUGIN(DISKS information_schema_disks.cc MODULE_ONLY RECOMPILE_FOR_EMBEDDED)
ENDIF()
-
diff --git a/plugin/type_mysql_json/type.cc b/plugin/type_mysql_json/type.cc
index ef8c97cfc1c..b897f64a3b2 100644
--- a/plugin/type_mysql_json/type.cc
+++ b/plugin/type_mysql_json/type.cc
@@ -223,6 +223,6 @@ maria_declare_plugin(type_mysql_json)
NULL,
NULL,
"0.1",
- MariaDB_PLUGIN_MATURITY_GAMMA
+ MariaDB_PLUGIN_MATURITY_STABLE
}
maria_declare_plugin_end;