From 7911e5e5cde7ad1ffcd9e367110a656b9432ad50 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 27 Jan 2013 11:33:01 -0200 Subject: Debugging Improvement Making signal.h available throughout the whole source when in DEBUG mode so that developers (and users debugging) can easily raise signals from anywhere. Extremely handy with gdb, for example. Signed-off-by: shennetsind --- src/common/core.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/core.h') diff --git a/src/common/core.h b/src/common/core.h index d48962c94..f619d821f 100644 --- a/src/common/core.h +++ b/src/common/core.h @@ -4,6 +4,11 @@ #ifndef _CORE_H_ #define _CORE_H_ +/* so that developers with --enable-debug can raise signals from any section of the code they'd like */ +#ifdef DEBUG + #include +#endif + extern int arg_c; extern char **arg_v; -- cgit v1.2.3-70-g09d2