We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a98e0a commit 3ca2a17Copy full SHA for 3ca2a17
1 file changed
cli/cppcheckexecutor.cpp
@@ -38,7 +38,13 @@
38
#include <cstdio>
39
#include <signal.h>
40
#include <unistd.h>
41
-#include <ucontext.h>
+#if defined(__APPLE__)
42
+# define _XOPEN_SOURCE // ucontext.h APIs can only be used on Mac OSX >= 10.7 if _XOPEN_SOURCE is defined
43
+# include <ucontext.h>
44
+# undef _XOPEN_SOURCE
45
+#else
46
47
+#endif
48
#ifdef __linux__
49
#include <sys/syscall.h>
50
#include <sys/types.h>
0 commit comments