Hi,
Attached are two patches submitted to Debian, and included in the
directfb packages.
thanks,
guillem
>From a2044cc3806ba37e86b894b5008f816fe5377d48 Mon Sep 17 00:00:00 2001
From: Tobias Grimm <[EMAIL PROTECTED]>
Date: Thu, 13 Dec 2007 11:06:46 +0200
Subject: [PATCH] Clean autogenerated files on distclean
---
include/Makefile.am | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/Makefile.am b/include/Makefile.am
index cd4ab90..1289d99 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -2,6 +2,8 @@
includedir = @INCLUDEDIR@
+DISTCLEANFILES = directfb_keynames.h directfb_strings.h
+
EXTRA_DIST = mknames.sh
include_HEADERS = \
--
1.5.3.7
>From 2dbfc100ed56db00dcb345b141b1a001ddf5f8ec Mon Sep 17 00:00:00 2001
From: Samuel Thibault <[EMAIL PROTECTED]>
Date: Thu, 13 Dec 2007 11:17:50 +0200
Subject: [PATCH] Fix inconditional use of SA_SIGINFO
This is not present at least on GNU/Hurd.
---
lib/direct/signals.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/lib/direct/signals.c b/lib/direct/signals.c
index de508f1..8f0927e 100644
--- a/lib/direct/signals.c
+++ b/lib/direct/signals.c
@@ -311,7 +311,11 @@ show_any( const siginfo_t *info )
}
static void
+#ifdef SA_SIGINFO
signal_handler( int num, siginfo_t *info, void *foo )
+#else
+signal_handler( int num )
+#endif
{
DirectLink *l, *n;
void *addr = NULL;
@@ -324,6 +328,7 @@ signal_handler( int num, siginfo_t *info, void *foo )
direct_log_printf( NULL, "(!) [%5d: %4lld.%03lld] --> Caught signal %d",
pid, millis/1000, millis%1000, num );
+#ifdef SA_SIGINFO
if (info && info > (siginfo_t*) 0x100) {
bool shown = false;
@@ -361,6 +366,7 @@ signal_handler( int num, siginfo_t *info, void *foo )
direct_log_printf( NULL, " (unknown origin) <--\n" );
}
else
+#endif
direct_log_printf( NULL, ", no siginfo available <--\n" );
direct_trace_print_stacks();
@@ -425,9 +431,15 @@ install_handlers()
struct sigaction action;
int signum = sigs_to_handle[i];
+
+#ifdef SA_SIGINFO
action.sa_sigaction = signal_handler;
action.sa_flags = SA_SIGINFO;
-
+#else
+ action.sa_handler = signal_handler;
+ action.sa_flags = 0;
+#endif
+
if (signum != SIGSEGV)
action.sa_flags |= SA_NODEFER;
--
1.5.3.7
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev