From 434c8ca2ec259e3cb80683c689c213103a4f47f8 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Mar 2007 00:43:14 -0700 Subject: Fixes for 5.1-arch repository to compile on Windows. CMakeLists.txt: Moved zlib to be processed before extra as CMake doesn't handle forward references well. client/CMakeLists.txt: Ensure that -DTHREADS is specified for mysqlslap.c client/mysqlslap.c: Removed includes which are already included in client_priv.h Moved variable declarations to be at start of function before any code is emitted as VSC is strict. --- client/mysqlslap.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'client/mysqlslap.c') diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 6fb810b6a23..809c1a6b5da 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -82,10 +82,6 @@ TODO: #define SELECT_TYPE_REQUIRES_PREFIX 5 #include "client_priv.h" -#include -#include -#include -#include #include #include #include @@ -1554,13 +1550,13 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit) uint x; struct timeval start_time, end_time; thread_context con; + pthread_t mainthread; /* Thread descriptor */ + pthread_attr_t attr; /* Thread attributes */ DBUG_ENTER("run_scheduler"); con.stmt= stmts; con.limit= limit; - pthread_t mainthread; /* Thread descriptor */ - pthread_attr_t attr; /* Thread attributes */ pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); -- cgit v1.2.1