summaryrefslogtreecommitdiffstats
path: root/winsup/utils/strace.cc
diff options
context:
space:
mode:
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;