aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/wvdial/wvstreams/0003-wvtask-Check-for-HAVE_LIBC_STACK_END-only-on-glibc-s.patch
blob: f9304197aefc44f6b0e7d041d4a9df3bd4a971d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From f1fc9f4d523dd8b773a4535176547b0619ec05c6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 20 Jul 2017 21:08:57 -0700
Subject: [PATCH 3/5] wvtask: Check for HAVE_LIBC_STACK_END only on glibc
 systems

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 utils/wvtask.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/wvtask.cc b/utils/wvtask.cc
index c0bff7d..716344b 100644
--- a/utils/wvtask.cc
+++ b/utils/wvtask.cc
@@ -563,7 +563,7 @@ void WvTaskMan::do_task()
 
 const void *WvTaskMan::current_top_of_stack()
 {
-#ifdef HAVE_LIBC_STACK_END
+#if defined(HAVE_LIBC_STACK_END) && defined(__GLIBC__)
     extern const void *__libc_stack_end;
     if (use_shared_stack() || current_task == NULL)
         return __libc_stack_end;
-- 
2.13.3