From b3f7eac5301529c2d069ebe4d0558980412af3a2 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Wed, 9 Mar 2011 00:51:22 +0200 Subject: [PATCH] Added define to get rid of compiler warnings on system without DLOPEN --- sql/sql_plugin_services.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/sql_plugin_services.h b/sql/sql_plugin_services.h index 7491ddab79d..dce9a394ff5 100644 --- a/sql/sql_plugin_services.h +++ b/sql/sql_plugin_services.h @@ -22,6 +22,8 @@ struct st_service_ref { void *service; }; +#ifdef HAVE_DLOPEN + static struct my_snprintf_service_st my_snprintf_handler = { my_snprintf, my_vsnprintf @@ -41,4 +43,4 @@ static struct st_service_ref list_of_services[]= { "my_snprintf_service", VERSION_my_snprintf, &my_snprintf_handler }, { "thd_alloc_service", VERSION_thd_alloc, &thd_alloc_handler } }; - +#endif