Small fix for HP-UX 10.20 with DCE threads

Also --with-libwrap is tested on Linux just fine.
parent c0d9954c
...@@ -853,6 +853,7 @@ case $SYSTEM_TYPE in ...@@ -853,6 +853,7 @@ case $SYSTEM_TYPE in
echo "Using --with-named-thread=-lpthread" echo "Using --with-named-thread=-lpthread"
with_named_thread="-lcma" with_named_thread="-lcma"
fi fi
AC_DEFINE(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT)
;; ;;
*hpux11.*) *hpux11.*)
echo "Enabling pread/pwrite workaround for hpux 11" echo "Enabling pread/pwrite workaround for hpux 11"
......
...@@ -349,7 +349,7 @@ extern void my_pthread_attr_setprio(pthread_attr_t *attr, int priority); ...@@ -349,7 +349,7 @@ extern void my_pthread_attr_setprio(pthread_attr_t *attr, int priority);
#undef HAVE_GETHOSTBYADDR_R /* No definition */ #undef HAVE_GETHOSTBYADDR_R /* No definition */
#endif #endif
#if defined(HAVE_DEC_THREADS) #if defined(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT)
extern int my_pthread_cond_timedwait(pthread_cond_t *cond, extern int my_pthread_cond_timedwait(pthread_cond_t *cond,
pthread_mutex_t *mutex, pthread_mutex_t *mutex,
struct timespec *abstime); struct timespec *abstime);
......
...@@ -412,7 +412,7 @@ int my_pthread_cond_init(pthread_cond_t *mp, const pthread_condattr_t *attr) ...@@ -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 */ /* Change functions on HP to work according to POSIX */
#ifdef HAVE_DEC_THREADS #ifdef HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT
#undef pthread_cond_timedwait #undef pthread_cond_timedwait
int my_pthread_cond_timedwait(pthread_cond_t *cond, int my_pthread_cond_timedwait(pthread_cond_t *cond,
...@@ -422,7 +422,7 @@ 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); int error=pthread_cond_timedwait(cond,mutex,abstime);
return error == EAGAIN ? ETIMEDOUT : error; 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 Emulate SOLARIS style calls, not because it's better, but just to make the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment