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
9fc82002
Commit
9fc82002
authored
Apr 16, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix for HP-UX 10.20 with DCE threads
Also --with-libwrap is tested on Linux just fine.
parent
c0d9954c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
configure.in
configure.in
+1
-0
include/my_pthread.h
include/my_pthread.h
+1
-1
mysys/my_pthread.c
mysys/my_pthread.c
+2
-2
No files found.
configure.in
View file @
9fc82002
...
...
@@ -853,6 +853,7 @@ case $SYSTEM_TYPE in
echo
"Using --with-named-thread=-lpthread"
with_named_thread
=
"-lcma"
fi
AC_DEFINE
(
HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT
)
;;
*
hpux11.
*
)
echo
"Enabling pread/pwrite workaround for hpux 11"
...
...
include/my_pthread.h
View file @
9fc82002
...
...
@@ -349,7 +349,7 @@ extern void my_pthread_attr_setprio(pthread_attr_t *attr, int priority);
#undef HAVE_GETHOSTBYADDR_R
/* No definition */
#endif
#if defined(HAVE_
DEC_THREADS
)
#if defined(HAVE_
BROKEN_PTHREAD_COND_TIMEDWAIT
)
extern
int
my_pthread_cond_timedwait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
,
struct
timespec
*
abstime
);
...
...
mysys/my_pthread.c
View file @
9fc82002
...
...
@@ -412,7 +412,7 @@ int my_pthread_cond_init(pthread_cond_t *mp, const pthread_condattr_t *attr)
/* Change functions on HP to work according to POSIX */
#ifdef HAVE_
DEC_THREADS
#ifdef HAVE_
BROKEN_PTHREAD_COND_TIMEDWAIT
#undef pthread_cond_timedwait
int
my_pthread_cond_timedwait
(
pthread_cond_t
*
cond
,
...
...
@@ -422,7 +422,7 @@ int my_pthread_cond_timedwait(pthread_cond_t *cond,
int
error
=
pthread_cond_timedwait
(
cond
,
mutex
,
abstime
);
return
error
==
EAGAIN
?
ETIMEDOUT
:
error
;
}
#endif
/* HAVE_
DEC_THREADS
*/
#endif
/* HAVE_
BROKEN_PTHREAD_COND_TIMEDWAIT
*/
/*
Emulate SOLARIS style calls, not because it's better, but just to make the
...
...
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