From 6e38e209d51dde389b8676667e10bff4dd706ac2 Mon Sep 17 00:00:00 2001
From: Oleksii Shevchuk
Date: Thu, 2 Mar 2017 09:32:44 +0200
Subject: [PATCH] Fix RTLD_NEXT in pthreads wokraround
---
client/sources-linux/buildenv.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/client/sources-linux/buildenv.sh b/client/sources-linux/buildenv.sh
index d23d751b..0e7acb2b 100755
--- a/client/sources-linux/buildenv.sh
+++ b/client/sources-linux/buildenv.sh
@@ -218,6 +218,10 @@ cat >>/usr/include/pthread.h <<__EOF__
#define _GNU_SOURCE
#include
+#ifndef RTLD_NEXT
+#define RTLD_NEXT ((void *) -1l)
+#endif
+
static int (*_pthread_condattr_setclock) (pthread_condattr_t *attr, clockid_t clock_id) = NULL;
static inline