Mercurial > hg > orthanc
diff Resources/CMake/GoogleLogConfiguration.h @ 194:0186ac92810c
fixes for Ubuntu 10.04
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Nov 2012 09:23:53 +0100 |
parents | 7593b57dc1bf |
children |
line wrap: on
line diff
--- a/Resources/CMake/GoogleLogConfiguration.h Tue Nov 13 14:02:28 2012 +0100 +++ b/Resources/CMake/GoogleLogConfiguration.h Wed Nov 14 09:23:53 2012 +0100 @@ -138,7 +138,16 @@ #define PACKAGE_VERSION "0.3.2" /* How to access the PC from a struct ucontext */ +/*#include <ucontext.h> +#include <sys/ucontext.h> +#ifdef REG_RIP #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP] +#else +#undef PC_FROM_UCONTEXT +#endif*/ + +// This is required for older versions of Linux +#undef PC_FROM_UCONTEXT /* Define to necessary symbol if this constant uses a non-standard name on your system. */