Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 475422 | Differences between
and this patch

Collapse All | Expand All

(-)a/config.h.in (+3 lines)
Lines 3-8 Link Here
3
/* Define to 1 if you have the <dlfcn.h> header file. */
3
/* Define to 1 if you have the <dlfcn.h> header file. */
4
#undef HAVE_DLFCN_H
4
#undef HAVE_DLFCN_H
5
5
6
/* Define to 1 if you have the <execinfo.h> header file. */
7
#undef HAVE_EXECINFO_H
8
6
/* Define to 1 if you have the <inttypes.h> header file. */
9
/* Define to 1 if you have the <inttypes.h> header file. */
7
#undef HAVE_INTTYPES_H
10
#undef HAVE_INTTYPES_H
8
11
(-)a/configure.ac (+2 lines)
Lines 181-186 Link Here
181
AC_CHECK_FUNC(signalfd, dummy=yes,
181
AC_CHECK_FUNC(signalfd, dummy=yes,
182
			AC_MSG_ERROR(signalfd support is required))
182
			AC_MSG_ERROR(signalfd support is required))
183
183
184
AC_CHECK_HEADERS([execinfo.h], [], [])
185
184
AC_CHECK_LIB(dl, dlopen, dummy=yes,
186
AC_CHECK_LIB(dl, dlopen, dummy=yes,
185
			AC_MSG_ERROR(dynamic linking loader is required))
187
			AC_MSG_ERROR(dynamic linking loader is required))
186
188
(-)a/src/log.c (+4 lines)
Lines 30-36 Link Here
30
#include <stdlib.h>
30
#include <stdlib.h>
31
#include <string.h>
31
#include <string.h>
32
#include <syslog.h>
32
#include <syslog.h>
33
#ifdef HAVE_EXECINFO_H
33
#include <execinfo.h>
34
#include <execinfo.h>
35
#endif
34
#include <dlfcn.h>
36
#include <dlfcn.h>
35
37
36
#include "connman.h"
38
#include "connman.h"
Lines 112-117 Link Here
112
114
113
static void print_backtrace(unsigned int offset)
115
static void print_backtrace(unsigned int offset)
114
{
116
{
117
#ifdef HAVE_EXECINFO_H
115
	void *frames[99];
118
	void *frames[99];
116
	size_t n_ptrs;
119
	size_t n_ptrs;
117
	unsigned int i;
120
	unsigned int i;
Lines 210-215 Link Here
210
213
211
	close(outfd[1]);
214
	close(outfd[1]);
212
	close(infd[0]);
215
	close(infd[0]);
216
#endif
213
}
217
}
214
218
215
static void signal_handler(int signo)
219
static void signal_handler(int signo)

Return to bug 475422