We're already considering <pthread.h> mandatory header elsewhere
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 23 Nov 2010 15:52:06 +0000 (17:52 +0200)
committerPanu 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

index 8ba6578..4e69ad0 100644 (file)
@@ -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>