diff options
author | Martin Willi <martin@strongswan.org> | 2006-12-11 09:29:34 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-12-11 09:29:34 +0000 |
commit | 5347a84f81cc97478bddb426d1ac5018387c6fff (patch) | |
tree | 1c0977a13d442e44b1d15d9c18a1e8287d02f0c0 /src/charon/daemon.c | |
parent | e696757c47f2b2f73ee92cccf4927d827d245309 (diff) | |
download | strongswan-5347a84f81cc97478bddb426d1ac5018387c6fff.tar.bz2 strongswan-5347a84f81cc97478bddb426d1ac5018387c6fff.tar.xz |
fixed HAVE_BACKTRACE checks
starter Makefile now uses proper $(COMPILE) to build pluto objects
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r-- | src/charon/daemon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c index f9e913c1b..2d15b58d2 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -29,10 +29,12 @@ #include <sys/types.h> #include <unistd.h> #include <time.h> -#include <execinfo.h> #include <string.h> #include <getopt.h> #include <errno.h> +#ifdef HAVE_BACKTRACE +# include <execinfo.h> +#endif /* HAVE_BACKTRACE */ #include "daemon.h" @@ -285,7 +287,7 @@ static void initialize(private_daemon_t *this, bool strict, bool syslog, */ void signal_handler(int signal) { -#ifndef HAVE_BACKTRACE +#ifdef HAVE_BACKTRACE void *array[20]; size_t size; char **strings; |