• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/connman/connman-uclibc-backtrace.patch
Peter KorsgaardPeter Korsgaard committed 40de828d3cb21 May 2012
Raw file
Source viewDiff to previous
 
1
[PATCH] fix build on uClibc without UCLIBC_HAS_BACKTRACE
2
​
3
Backtrace support is only used for logging on signal errors, which
4
isn't really critical, so simply remove backtrace info if not
5
available in uClibc.
6
​
7
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
8
---
9
 src/log.c |    7 +++++++
10
 1 file changed, 7 insertions(+)
11
​
12
Index: connman-0.78/src/log.c
13
===================================================================
14
--- connman-0.78.orig/src/log.c
15
+++ connman-0.78/src/log.c
16
@@ -30,7 +30,12 @@
17
 #include <stdlib.h>
18
 #include <string.h>
19
 #include <syslog.h>
20
+#include <features.h>
21
+/* backtrace support is optional on uClibc */
22
+#if !(defined(__UCLIBC__) && !defined (__UCLIBC_HAS_BACKTRACE__))
23
+#define HAVE_BACKTRACE
24
 #include <execinfo.h>
25
+#endif
26
 #include <dlfcn.h>
27
 
28
 #include "connman.h"
29
@@ -112,6 +117,7 @@
30
 
31
 static void print_backtrace(unsigned int offset)
32
 {
33
+#ifdef HAVE_BACKTRACE
34
    void *frames[99];
35
    size_t n_ptrs;
36
    unsigned int i;
37
@@ -210,6 +216,7 @@
38
 
39
    close(outfd[1]);
40
    close(infd[0]);
41
+#endif /* HAVE_BACKTRACE */
42
 }
43
 
44
 static void signal_handler(int signo)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.