diff options
author | Michael Widenius <monty@askmonty.org> | 2011-03-09 00:51:22 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-03-09 00:51:22 +0200 |
commit | b3f7eac5301529c2d069ebe4d0558980412af3a2 (patch) | |
tree | 79ac770727861d6dc59d36f02909000300c62d75 /sql/sql_plugin_services.h | |
parent | 546a166b4e1a52d63694caa38bc737e18fd8e98b (diff) | |
download | mariadb-git-b3f7eac5301529c2d069ebe4d0558980412af3a2.tar.gz |
Added define to get rid of compiler warnings on system without DLOPEN
Diffstat (limited to 'sql/sql_plugin_services.h')
-rw-r--r-- | sql/sql_plugin_services.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |