summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/priv.cc
diff options
context:
space:
mode:
authorunknown <reggie@fedora.(none)>2005-11-02 09:30:01 -0600
committerunknown <reggie@fedora.(none)>2005-11-02 09:30:01 -0600
commite9af959eef34eecefb7db59fe31afc250c6fabcb (patch)
treefdc5968fbf3580a8e51d18c674e1945a009d45e8 /server-tools/instance-manager/priv.cc
parent5ce36e8134f41aed1e6dbfe585eb8e3c0ef410e5 (diff)
downloadmariadb-git-e9af959eef34eecefb7db59fe31afc250c6fabcb.tar.gz
make the IM compile on Windows
server-tools/instance-manager/instance_options.cc: fix for coding guidelines server-tools/instance-manager/parse_output.cc: fix for coding guidelines server-tools/instance-manager/priv.cc: don't call pthread_attr_setstacksize on Windows server-tools/instance-manager/priv.h: include my_pthread so the thread functions will compile on Windows
Diffstat (limited to 'server-tools/instance-manager/priv.cc')
-rw-r--r--server-tools/instance-manager/priv.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/server-tools/instance-manager/priv.cc b/server-tools/instance-manager/priv.cc
index cf073d9d7dc..a5040aa2e83 100644
--- a/server-tools/instance-manager/priv.cc
+++ b/server-tools/instance-manager/priv.cc
@@ -73,8 +73,9 @@ unsigned long open_files_limit;
int set_stacksize_n_create_thread(pthread_t *thread, pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg)
{
- int rc;
+ int rc= 0;
+#ifndef __WIN__
/*
Set stack size to be safe on the platforms with too small
default thread stack.
@@ -82,7 +83,7 @@ int set_stacksize_n_create_thread(pthread_t *thread, pthread_attr_t *attr,
rc= pthread_attr_setstacksize(attr,
(size_t) (PTHREAD_STACK_MIN +
IM_THREAD_STACK_SIZE));
-
+#endif
if (!rc)
rc= pthread_create(thread, attr, start_routine, arg);
return rc;