diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libmissing.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/libmissing.h b/include/libmissing.h new file mode 100644 index 0000000..c765f6d --- /dev/null +++ b/include/libmissing.h @@ -0,0 +1,15 @@ +#ifndef LIBMISSING_H +#define LIBMISSING_H + +#ifdef HAVE_EXECINFO +#include <execinfo.h> +#endif + +#ifndef HAVE_EXECINFO +int backtrace(void **buffer, int size); +char **backtrace_symbols(void *const *buffer, int size); +void backtrace_symbols_fd(void *const *buffer, int size, int fd); +#endif + +#endif /* LIBMISSING_H */ + |