summaryrefslogtreecommitdiff
path: root/rpmio/rpmsq.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-07-13 10:47:56 +0000
committerjbj <devnull@localhost>2005-07-13 10:47:56 +0000
commit51b32ae1301f6b862fab83bfebb574a08defbc77 (patch)
treee650f9df28be30181807adb817ec05011ffa8577 /rpmio/rpmsq.c
parent5d98fa4d18be7e2502d695da0c165e2ff605f2c5 (diff)
downloadlibrpm-tizen-51b32ae1301f6b862fab83bfebb574a08defbc77.tar.gz
librpm-tizen-51b32ae1301f6b862fab83bfebb574a08defbc77.tar.bz2
librpm-tizen-51b32ae1301f6b862fab83bfebb574a08defbc77.zip
Add porting sanity check (#159024).
CVS patchset: 7879 CVS date: 2005/07/13 10:47:56
Diffstat (limited to 'rpmio/rpmsq.c')
-rw-r--r--rpmio/rpmsq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpmio/rpmsq.c b/rpmio/rpmsq.c
index 1b59c36af..d0e5044d1 100644
--- a/rpmio/rpmsq.c
+++ b/rpmio/rpmsq.c
@@ -126,6 +126,11 @@ extern int pthread_cond_signal(pthread_cond_t *cond)
#include <pthread.h>
+/* XXX suggested in bugzilla #159024 */
+#if PTHREAD_MUTEX_DEFAULT != PTHREAD_MUTEX_NORMAL
+ #error RPM expects PTHREAD_MUTEX_DEFAULT == PTHREAD_MUTEX_NORMAL
+#endif
+
#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
/*@unchecked@*/
static pthread_mutex_t rpmsigTbl_lock = PTHREAD_MUTEX_INITIALIZER;