summaryrefslogtreecommitdiff
path: root/mysys/my_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_init.c')
-rw-r--r--mysys/my_init.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c
index d68af1400c5..fc178b0308b 100644
--- a/mysys/my_init.c
+++ b/mysys/my_init.c
@@ -19,10 +19,6 @@
#include "mysys_err.h"
#include <m_string.h>
#include <m_ctype.h>
-#ifdef HAVE_GETRUSAGE
-#include <sys/resource.h>
-/* extern int getrusage(int, struct rusage *); */
-#endif
#include <signal.h>
#ifdef VMS
#include <my_static.c>
@@ -242,8 +238,13 @@ static void my_win_init(void)
setlocale(LC_CTYPE, ""); /* To get right sortorder */
- /* Clear the OS system variable TZ and avoid the 100% CPU usage */
+#if defined(_MSC_VER) && (_MSC_VER < 1300)
+ /*
+ Clear the OS system variable TZ and avoid the 100% CPU usage
+ Only for old versions of Visual C++
+ */
_putenv( "TZ=" );
+#endif
_tzset();
/* apre la chiave HKEY_LOCAL_MACHINES\software\MySQL */