Skip to content
Snippets Groups Projects
Commit 66b0aca0 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

on mac osx change location of ucontext.h

parent dea15377
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,11 @@ ...@@ -35,7 +35,11 @@
#include <signal.h> #include <signal.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef DARWIN
#include <sys/ucontext.h>
#else
#include <ucontext.h> #include <ucontext.h>
#endif //DARWIN
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/time.h> #include <sys/time.h>
......
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
#define __USE_GNU #define __USE_GNU
#endif #endif
#ifdef DARWIN
#include <sys/ucontext.h>
#else
#include <ucontext.h> #include <ucontext.h>
#endif //DARWIN
#include <execinfo.h> #include <execinfo.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment