5df926
From 5996c73516ad1a21eff008145f4643d9eded2c80 Mon Sep 17 00:00:00 2001
5df926
From: Evan Hunt <each@isc.org>
5df926
Date: Tue, 25 Jan 2022 12:28:48 -0800
5df926
Subject: [PATCH] restore missing lines in dlz_pthread.h
c0565f
5df926
some lines were accidentally deleted during a backport that
5df926
made it imposisble to build DLZ modules.
c0565f
---
5df926
 contrib/dlz/modules/include/dlz_pthread.h | 5 +++++
5df926
 1 file changed, 5 insertions(+)
c0565f
c0565f
diff --git a/contrib/dlz/modules/include/dlz_pthread.h b/contrib/dlz/modules/include/dlz_pthread.h
5df926
index c1b6db637e..4479f836c0 100644
c0565f
--- a/contrib/dlz/modules/include/dlz_pthread.h
c0565f
+++ b/contrib/dlz/modules/include/dlz_pthread.h
5df926
@@ -19,6 +19,11 @@
5df926
 #ifndef DLZ_PTHREAD_H
5df926
 #define DLZ_PTHREAD_H 1
c0565f
 
5df926
+#ifndef PTHREADS
5df926
+#define PTHREADS 1
5df926
+#endif /* ifndef PTHREADS */
5df926
+
5df926
+#ifdef PTHREADS
5df926
 #include <pthread.h>
5df926
 #define dlz_mutex_t	  pthread_mutex_t
5df926
 #define dlz_mutex_init	  pthread_mutex_init
c0565f
-- 
5df926
2.34.1
c0565f