c0565f
From ed812b09c091ba31c0c14b597ddbcfab47ce1cf3 Mon Sep 17 00:00:00 2001
c0565f
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
c0565f
Date: Fri, 21 Jan 2022 18:19:04 +0100
c0565f
Subject: [PATCH] Correct #ifdef broken by pthread removal
c0565f
c0565f
Commit 2bf7921c7e93d43fa32fcfc9cd8e20d26c5f2084 has broken building of
c0565f
ldap module. Initial #ifdef PTHREADS were removed without removing also
c0565f
else and endif parts. DLZ modules do not compile anymore.
c0565f
---
c0565f
 contrib/dlz/modules/include/dlz_pthread.h | 8 --------
c0565f
 1 file changed, 8 deletions(-)
c0565f
c0565f
diff --git a/contrib/dlz/modules/include/dlz_pthread.h b/contrib/dlz/modules/include/dlz_pthread.h
c0565f
index c1b6db637e..10619d39b9 100644
c0565f
--- a/contrib/dlz/modules/include/dlz_pthread.h
c0565f
+++ b/contrib/dlz/modules/include/dlz_pthread.h
c0565f
@@ -26,13 +26,5 @@
c0565f
 #define dlz_mutex_lock	  pthread_mutex_lock
c0565f
 #define dlz_mutex_trylock pthread_mutex_trylock
c0565f
 #define dlz_mutex_unlock  pthread_mutex_unlock
c0565f
-#else /* !PTHREADS */
c0565f
-#define dlz_mutex_t	     void
c0565f
-#define dlz_mutex_init(a, b) (0)
c0565f
-#define dlz_mutex_destroy(a) (0)
c0565f
-#define dlz_mutex_lock(a)    (0)
c0565f
-#define dlz_mutex_trylock(a) (0)
c0565f
-#define dlz_mutex_unlock(a)  (0)
c0565f
-#endif /* ifdef PTHREADS */
c0565f
 
c0565f
 #endif /* DLZ_PTHREAD_H */
c0565f
-- 
c0565f
2.31.1
c0565f