1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-ac,v 1.3 2010/02/20 20:50:34 gdt Exp $
--- src/main.c.orig 2010-02-17 21:21:19.000000000 +0000
+++ src/main.c
@@ -709,6 +709,7 @@ void exit_program(void)
*/
/* FIXME: this probably needs some better ifdefs. Please report any compilation problems */
+#if 0
#if defined(SIGBUS) && defined(SA_SIGINFO)
static void sigbus_handler_cb(int signum, siginfo_t *info, void *context)
{
@@ -717,9 +718,11 @@ static void sigbus_handler_cb(int signum
mmap((void *)(((unsigned long)info->si_addr / pagesize) * pagesize), pagesize, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
}
#endif
+#endif /* 0 */
static void setup_sigbus_handler(void)
{
+#if 0
#if defined(SIGBUS) && defined(SA_SIGINFO)
struct sigaction sigbus_action;
sigfillset(&sigbus_action.sa_mask);
@@ -728,6 +731,7 @@ static void setup_sigbus_handler(void)
sigaction(SIGBUS, &sigbus_action, NULL);
#endif
+#endif /* 0 */
}
gint main(gint argc, gchar *argv[])
|