From c6c9f06b7c20e7d2c3d32e314716783ccc631d91 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 19 Mar 2000 03:53:18 +0000 Subject: Patch suggested by Mumit Khan : * strace.cc (_impure_ptr): New global variable to make strace build under Cygwin gcc. --- winsup/utils/strace.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/utils/strace.cc') diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 9d58bf650..4b08e91cb 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -8,6 +8,12 @@ #include #include "sys/strace.h" +/* GCC runtime library's C++ EH code unfortunately pulls in stdio, and we + get undefine references to __impure_ptr, and hence the following + hack. It should be reasonably safe however as long as this file + is built using -mno-cygwin as is intended. */ +int _impure_ptr; + static const char *pgm; static int forkdebug = 0; static int numerror = 1; -- cgit v1.2.3