summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch')
-rw-r--r--meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch b/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch
new file mode 100644
index 0000000000..9bca52832a
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.5.20/sigmask.patch
@@ -0,0 +1,22 @@
1sigmask is a macro which is dropped if BSD compatibility is
2not enabled. So we check if the macro does not exist then
3we define it to __sigmask
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: strace-4.5.20/signal.c
8===================================================================
9--- strace-4.5.20.orig/signal.c 2010-02-23 13:26:16.000000000 -0800
10+++ strace-4.5.20/signal.c 2011-07-20 23:06:35.842339197 -0700
11@@ -140,6 +140,11 @@
12 #endif
13 #endif /* LINUX */
14
15+#if !defined (sigmask) && defined (__sigmask)
16+/* Compute mask for signal SIG. */
17+#define sigmask(sig) __sigmask(sig)
18+#endif /* sigmask */
19+
20 const char *const signalent0[] = {
21 #include "signalent.h"
22 };