mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
ucontext.h seems to be deprecated in Snow Leopard, so let's include sys/ucontext.h there
This commit is contained in:
parent
da1653f8b6
commit
93c6b27e70
@ -30,7 +30,11 @@
|
|||||||
/* We'd prefer to use getcontext() / setcontext() to portably change
|
/* We'd prefer to use getcontext() / setcontext() to portably change
|
||||||
execution contexts within C code. That's what these library
|
execution contexts within C code. That's what these library
|
||||||
functions are designed for. */
|
functions are designed for. */
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <sys/ucontext.h>
|
||||||
|
#else
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct ThreadContext {
|
struct ThreadContext {
|
||||||
ucontext_t _ucontext;
|
ucontext_t _ucontext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user