Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e2fc4f0b
Commit
e2fc4f0b
authored
May 15, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to get thread_test to compile
parent
836216f4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
.bzrignore
.bzrignore
+4
-0
tests/Makefile.am
tests/Makefile.am
+3
-0
tests/thread_test.c
tests/thread_test.c
+4
-3
No files found.
.bzrignore
View file @
e2fc4f0b
...
...
@@ -607,3 +607,7 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
client_test
thread_test
select_test
insert_test
tests/Makefile.am
View file @
e2fc4f0b
...
...
@@ -40,6 +40,9 @@ client_test_DEPENDENCIES= $(LIBRARIES) $(pkglib_LTLIBRARIES)
insert_test_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
select_test_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
# Fix for mit-threads
DEFS
=
-DUNDEF_THREADS_HACK
thread_test.o
:
thread_test.c
$(COMPILE)
-c
@MT_INCLUDES@
$(INCLUDES)
$<
...
...
tests/thread_test.c
View file @
e2fc4f0b
...
...
@@ -39,9 +39,9 @@ static char *database,*host,*user,*password,*unix_socket,*query;
uint
tcp_port
;
#ifndef __WIN__
void
*
test_thread
(
void
*
arg
)
void
*
test_thread
(
void
*
arg
__attribute__
((
unused
))
)
#else
unsigned
__stdcall
test_thread
(
void
*
arg
)
unsigned
__stdcall
test_thread
(
void
*
arg
__attribute__
((
unused
))
)
#endif
{
MYSQL
*
mysql
;
...
...
@@ -186,7 +186,8 @@ int main(int argc, char **argv)
{
pthread_t
tid
;
pthread_attr_t
thr_attr
;
int
i
,
error
;
uint
i
;
int
error
;
MY_INIT
(
argv
[
0
]);
get_options
(
argc
,
argv
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment