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:
@ -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;
|
||||
|
Reference in New Issue
Block a user