projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a50e4a
)
We're already considering <pthread.h> mandatory header elsewhere
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 23 Nov 2010 15:52:06 +0000
(17:52 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 23 Nov 2010 15:52:06 +0000
(17:52 +0200)
- ... so might as well do so here too
rpmio/rpmsq.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmsq.c
b/rpmio/rpmsq.c
index
8ba6578
..
4e69ad0
100644
(file)
--- 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>