core: only include execinfo.h if crashtrace support is enabled

On systems without backtrace suport (E.G. uClibc depending on config),
execinfo.h might not be available, breaking the build.

Fix it by only including it if enabled.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2012-01-02 14:49:40 +01:00 committed by Dan Williams
parent e4327518f3
commit cbf72aeb34

View file

@ -23,7 +23,6 @@
#include <dlfcn.h>
#include <syslog.h>
#include <execinfo.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>