From fed650036d75321c73aac6174dbcbcb1f9529143 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 29 May 2007 11:01:29 +0000 Subject: [PATCH] Make debug code work on darwin. --- src/nvcore/Debug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nvcore/Debug.cpp b/src/nvcore/Debug.cpp index 98b139c..f75ad9a 100644 --- a/src/nvcore/Debug.cpp +++ b/src/nvcore/Debug.cpp @@ -38,6 +38,7 @@ # include // getpid # include # include // sysctl +# include #endif #include // std::runtime_error @@ -179,9 +180,9 @@ namespace # elif NV_CPU_PPC ucontext_t * ucp = (ucontext_t *)secret; return (void *) ucp->uc_mcontext.regs->nip; -#else +# else return NULL; -#endif +# endif // How to obtain the instruction pointers in different platforms, from mlton's source code. // http://mlton.org/