Patch suggested by Mumit Khan <khan@xraylith.wisc.edu>:

* strace.cc (_impure_ptr): New global variable to make strace build under
Cygwin gcc.
This commit is contained in:
Christopher Faylor
2000-03-19 03:53:18 +00:00
parent 72ac8b4f0f
commit c6c9f06b7c
3 changed files with 14 additions and 2 deletions

View File

@ -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;