diff options
author | rhyskidd <rhyskidd@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2015-05-28 12:49:00 +0000 |
---|---|---|
committer | rhyskidd <rhyskidd@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2015-05-28 12:49:00 +0000 |
commit | 0dc35261140f7612f1e516a9fa2a977f4e30e04e (patch) | |
tree | dfd5b3414eef84b98bf3bef0aa16a94e2f619bbb /include/vki | |
parent | 18188c6f502d2bc1b568b5bd4e05155436dea337 (diff) | |
download | valgrind-0dc35261140f7612f1e516a9fa2a977f4e30e04e.tar.gz |
Signal handler ucontext_t not filled out correctly on OS X
bz#341419
Before:
== 589 tests, 220 stderr failures, 15 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==
After:
== 591 tests, 220 stderr failures, 15 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15296 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/vki')
-rw-r--r-- | include/vki/vki-darwin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vki/vki-darwin.h b/include/vki/vki-darwin.h index 9e53f25bf..7ff7c5bc0 100644 --- a/include/vki/vki-darwin.h +++ b/include/vki/vki-darwin.h @@ -34,6 +34,12 @@ #ifndef __VKI_DARWIN_H #define __VKI_DARWIN_H +/* struct __darwin_ucontext isn't fully declared without + * this definition. It's crazy but there it is. */ +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE 0500 +#endif + #include <stdint.h> #define vki_int8_t int8_t |