Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-03-19 06:53:18 +0300
committerChristopher Faylor <me@cgf.cx>2000-03-19 06:53:18 +0300
commitc6c9f06b7c20e7d2c3d32e314716783ccc631d91 (patch)
tree30589b0d06e8eab04a72b487d27315d908c11545 /winsup/utils/strace.cc
parent72ac8b4f0fdf15552024de424be9d2fac33357f2 (diff)
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.cc6
1 files changed, 6 insertions, 0 deletions
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 <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;