summaryrefslogtreecommitdiffstats
path: root/main/gdb/gdb-linux_nat.patch
blob: 6a7276cc41053fed1fe6428f0b439ce58d06db35 (plain)
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
--- ./gdb/linux-nat.c.orig
+++ ./gdb/linux-nat.c
@@ -169,6 +169,10 @@
 #define O_LARGEFILE 0
 #endif
 
+#ifndef W_STOPCODE
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+#endif
+
 /* The single-threaded native GNU/Linux target_ops.  We save a pointer for
    the use of the multi-threaded target.  */
 static struct target_ops *linux_ops;
@@ -4875,10 +4879,10 @@
      fortunately they don't change!  */
 
   if (restart == 0)
-    restart = __SIGRTMIN;
+    restart = SIGRTMIN;
 
   if (cancel == 0)
-    cancel = __SIGRTMIN + 1;
+    cancel = SIGRTMIN + 1;
 
   sigaddset (set, restart);
   sigaddset (set, cancel);