summaryrefslogtreecommitdiff
path: root/glib/gbacktrace.h
diff options
context:
space:
mode:
authorDaniel Egger <degger@fhm.edu>2001-10-29 18:49:28 +0000
committerDaniel Egger <egger@src.gnome.org>2001-10-29 18:49:28 +0000
commit062ecaf1ed6be60135ea19214bfa3e99a3b2aa93 (patch)
tree432179cf820fd074921ae5467b73807efb6d0022 /glib/gbacktrace.h
parent227ae2a96c37d37912a63d1432e008e3ac1734ef (diff)
downloadglib-062ecaf1ed6be60135ea19214bfa3e99a3b2aa93.tar.gz
Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to include
2001-10-29 Daniel Egger <degger@fhm.edu> * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to include <signal.h> and use SIGTRAP. * glib/gmessages.c: Conditionalise definition of args2 depending on the definition of HAVE_VSNPRINTF to avoid compiler warning. * gobject/testgruntime.c * tests/patterntest.c: Include <string.h> to avoid warnings.
Diffstat (limited to 'glib/gbacktrace.h')
-rw-r--r--glib/gbacktrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/glib/gbacktrace.h b/glib/gbacktrace.h
index 93b51749c..c2f2fcd8b 100644
--- a/glib/gbacktrace.h
+++ b/glib/gbacktrace.h
@@ -53,7 +53,8 @@ void g_on_error_stack_trace (const gchar *prg_name);
#elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2
# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END
#else /* !__i386__ && !__alpha__ */
-# define G_BREAKPOINT() G_STMT_START{ raise (5 /* SIGTRAP */); }G_STMT_END
+#include <signal.h> /* For prototype and signal name definition */
+# define G_BREAKPOINT() G_STMT_START{ raise (SIGTRAP); }G_STMT_END
#endif /* __i386__ */
G_END_DECLS