diff options
author | Christopher Faylor <me@cgf.cx> | 2000-03-19 03:53:18 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-03-19 03:53:18 +0000 |
commit | c6c9f06b7c20e7d2c3d32e314716783ccc631d91 (patch) | |
tree | 30589b0d06e8eab04a72b487d27315d908c11545 /winsup/utils/strace.cc | |
parent | 72ac8b4f0fdf15552024de424be9d2fac33357f2 (diff) | |
download | newlib-c6c9f06b7c20e7d2c3d32e314716783ccc631d91.zip newlib-c6c9f06b7c20e7d2c3d32e314716783ccc631d91.tar.gz newlib-c6c9f06b7c20e7d2c3d32e314716783ccc631d91.tar.bz2 |
Patch suggested by Mumit Khan <khan@xraylith.wisc.edu>:
* strace.cc (_impure_ptr): New global variable to make strace build under
Cygwin gcc.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r-- | winsup/utils/strace.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 9d58bf6..4b08e91 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -8,6 +8,12 @@ #include <signal.h> #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; |