summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-11-23 17:52:06 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-11-23 17:52:06 +0200
commit4ddd89ce6924d7b6a0988d93d2b6a8cbe9a30a60 (patch)
tree6ab38f9d2fdd8e16d91d0c85a138d227c85150a5 /rpmio
parent1a50e4a30be76c328eb9aee647d98818c53bb519 (diff)
downloadrpm-4ddd89ce6924d7b6a0988d93d2b6a8cbe9a30a60.tar.gz
rpm-4ddd89ce6924d7b6a0988d93d2b6a8cbe9a30a60.tar.bz2
rpm-4ddd89ce6924d7b6a0988d93d2b6a8cbe9a30a60.zip
We're already considering <pthread.h> mandatory header elsewhere
- ... so might as well do so here too
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmsq.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/rpmio/rpmsq.c b/rpmio/rpmsq.c
index 8ba657829..4e69ad040 100644
--- a/rpmio/rpmsq.c
+++ b/rpmio/rpmsq.c
@@ -11,8 +11,6 @@
#include <errno.h>
#include <stdio.h>
-#if defined(HAVE_PTHREAD_H)
-
#include <pthread.h>
/* XXX suggested in bugzilla #159024 */
@@ -33,17 +31,6 @@ static pthread_mutex_t rpmsigTbl_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#define ME() ((void *)pthread_self())
-#else
-
-#define DO_LOCK()
-#define DO_UNLOCK()
-#define ADD_REF(__tbl) (0)
-#define SUB_REF(__tbl) (0)
-
-#define ME() (((void *)getpid()))
-
-#endif /* HAVE_PTHREAD_H */
-
#define _RPMSQ_INTERNAL
#include <rpm/rpmsq.h>