File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 3737 */
3838
3939#include "sq.h"
40+ #include "sqAssert.h"
4041#include "sqVirtualMachine.h"
4142#include "FilePlugin.h"
4243#include "DropPlugin.h"
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ ioClearProfile(void)
4343{
4444}
4545#else /* NO_VM_PROFILE */
46- #include <pthread.h>
46+ /* linux's sched.h defines clone that conflicts with the interpreter's */
47+ # define clone NameSpacePollutant
48+ # include <pthread.h>
49+ # undef clone
4750#include "include_ucontext.h"
4851#include <signal.h>
4952#include <sys/time.h>
@@ -57,7 +60,9 @@ extern unsigned long _etext;
5760
5861#include <errno.h>
5962
63+ #define clone (foo ) fubar(foo) // sched.h declares clone
6064#include "sq.h"
65+ #undef clone
6166
6267/*
6368 * The pc collection scheme is an event buffer into which are written pcs. The
You can’t perform that action at this time.
0 commit comments