summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/openhpi/files/0001-plugins-Check-for-PTHREAD_RECURSIVE_MUTEX_INITIALIZE.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/0001-plugins-Check-for-PTHREAD_RECURSIVE_MUTEX_INITIALIZE.patch')
-rw-r--r--meta-networking/recipes-daemons/openhpi/files/0001-plugins-Check-for-PTHREAD_RECURSIVE_MUTEX_INITIALIZE.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/0001-plugins-Check-for-PTHREAD_RECURSIVE_MUTEX_INITIALIZE.patch b/meta-networking/recipes-daemons/openhpi/files/0001-plugins-Check-for-PTHREAD_RECURSIVE_MUTEX_INITIALIZE.patch
deleted file mode 100644
index 0f033ac85..000000000
--- a/meta-networking/recipes-daemons/openhpi/files/0001-plugins-Check-for-PTHREAD_RECURSIVE_MUTEX_INITIALIZE.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From be665d9513cca7e8b64c79ae424cf44ac166b052 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 14 Sep 2017 17:07:58 -0700
4Subject: [PATCH] plugins: Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
5 before use
6
7musl does not define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
8so we can not assume that all Linux systems support PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
9its a glibc specific define so check for it being defined before using it
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13Upstream-Status: Pending
14
15 plugins/dynamic_simulator/thread.cpp | 2 +-
16 plugins/ipmidirect/thread.cpp | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/plugins/dynamic_simulator/thread.cpp b/plugins/dynamic_simulator/thread.cpp
20index d663be0..9210fd7 100644
21--- a/plugins/dynamic_simulator/thread.cpp
22+++ b/plugins/dynamic_simulator/thread.cpp
23@@ -229,7 +229,7 @@ cThread::Exit( void *rv )
24 /**
25 * Constructor
26 **/
27-#if ( defined(__sun) && defined(__SVR4) ) || defined(__FreeBSD__)
28+#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
29 cThreadLock::cThreadLock()
30 {
31 pthread_mutexattr_t attr;
32diff --git a/plugins/ipmidirect/thread.cpp b/plugins/ipmidirect/thread.cpp
33index 5c52557..48e83fa 100644
34--- a/plugins/ipmidirect/thread.cpp
35+++ b/plugins/ipmidirect/thread.cpp
36@@ -167,7 +167,7 @@ cThread::Exit( void *rv )
37 // cThreadLock
38 //////////////////////////////////////////////////
39
40-#if ( defined(__sun) && defined(__SVR4) ) || defined(__FreeBSD__)
41+#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
42 cThreadLock::cThreadLock()
43 {
44 pthread_mutexattr_t attr;
45--
462.14.1
47