This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 15/16] conditionally define __WCLONE


This copies the definition of __WCLONE into linux-ptrace.h, in case it
is needed.

2013-11-06  Tom Tromey  <tromey@redhat.com>

	* common/linux-ptrace.h (__WCLONE): Conditionally define.
---
 gdb/ChangeLog             | 4 ++++
 gdb/common/linux-ptrace.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/gdb/common/linux-ptrace.h b/gdb/common/linux-ptrace.h
index 39c943e..c91ef18 100644
--- a/gdb/common/linux-ptrace.h
+++ b/gdb/common/linux-ptrace.h
@@ -83,6 +83,10 @@ struct buffer;
 #define __WALL          0x40000000 /* Wait for any child.  */
 #endif
 
+#ifndef __WCLONE
+#define __WCLONE        0x80000000 /* Wait for cloned process.  */
+#endif
+
 extern void linux_ptrace_attach_warnings (pid_t pid, struct buffer *buffer);
 extern void linux_ptrace_init_warnings (void);
 extern void linux_enable_event_reporting (pid_t pid);
-- 
1.8.1.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]