summaryrefslogtreecommitdiff
path: root/sql/sql_profile.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-11-26 23:07:53 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-11-26 23:07:53 +0100
commit64e308e28d2b0fb4cd005e23189e3639912bcd60 (patch)
tree07aa8c5d623328ff0288dba79634ec3e2a9ed5e3 /sql/sql_profile.cc
parent6be24a771a27a077d58d21a4a1f8db3fbd14cac4 (diff)
downloadmariadb-git-64e308e28d2b0fb4cd005e23189e3639912bcd60.tar.gz
Fix build and packaging on Windows:
- build executables we have in 5.3 (mysql_install_db.exe, mysq_upgrade_service.exe, upgrade wizard), and MSI - add some missing headers to windows specific source files. This needs to be done since 5.5 is using WIN32_LEAN_AND_MEAN preprocessor constant thus windows.h no more includes whiole Windows - do not deliver perl scripts (mysql_install_db.pl & friends) -they do not work, are not documented, and we have native executables for this functionality. do not pack echo.exe, replace.exe into MSI, they are not needed. Do not build resolveip on Windows, it is not used. - precache results of of system checks in cmake/os/WindowsCache.cmake (like it is alreay done for majority of tests to speed up cmake run with VS) - make feedback plugin DEFAULT on Windows (so MSI works if user enables plugin), fix null pointer access in PSI_register
Diffstat (limited to 'sql/sql_profile.cc')
-rw-r--r--sql/sql_profile.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_profile.cc b/sql/sql_profile.cc
index aee42af8b71..fe593dbae88 100644
--- a/sql/sql_profile.cc
+++ b/sql/sql_profile.cc
@@ -36,6 +36,10 @@
#include "sql_show.h" // schema_table_store_record
#include "sql_class.h" // THD
+#ifdef _WIN32
+#pragma comment(lib,"psapi.lib")
+#endif
+
#define TIME_FLOAT_DIGITS 9
/** two vals encoded: (len*100)+dec */
#define TIME_I_S_DECIMAL_SIZE (TIME_FLOAT_DIGITS*100)+(TIME_FLOAT_DIGITS-3)