From 0d585a6e8cba126905599faf72b2de56f71ad81f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 23 Aug 2013 14:32:28 +0000 Subject: [PATCH] * child_info.h (PROC_MAGIC_GENERIC): Define differently for x86 vs. x86_64. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/child_info.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 24622e6d8..029649eb0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-08-23 Christopher Faylor + + * child_info.h (PROC_MAGIC_GENERIC): Define differently for x86 vs. + x86_64. + 2013-08-23 Corinna Vinschen * path.h (enum path_types): Drop definition of PATH_64BITEXEC. diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 70cfd5433..d9467274f 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -30,7 +30,11 @@ enum child_status #define OPROC_MAGIC_MASK 0xff00ff00 #define OPROC_MAGIC_GENERIC 0xaf00f000 -#define PROC_MAGIC_GENERIC 0xaf00fa00 +#ifdef __x86_64__ +#define PROC_MAGIC_GENERIC 0xaf00fa64 +#else /*!x86_64*/ +#define PROC_MAGIC_GENERIC 0xaf00fa32 +#endif #define EXEC_MAGIC_SIZE sizeof(child_info) -- 2.43.5