projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e22b0
)
unittests/SupportTests/Initialize.MultipleThreads: Enable pthread_attr_setstack(3...
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 24 Jan 2013 15:29:27 +0000
(15:29 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 24 Jan 2013 15:29:27 +0000
(15:29 +0000)
I got blamed on darwin11;
unittests/Support/ManagedStatic.cpp:35: error: 'pthread_attr_setstack' was not declared in this scope
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173355
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/ManagedStatic.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/ManagedStatic.cpp
b/unittests/Support/ManagedStatic.cpp
index b1df2bd6d211561b129b0e8c1690196496543eca..a4137619f4d70303bfa0b8a1cfc6d00e76183546 100644
(file)
--- a/
unittests/Support/ManagedStatic.cpp
+++ b/
unittests/Support/ManagedStatic.cpp
@@
-32,7
+32,9
@@
namespace test1 {
void *allocate_stack(pthread_attr_t &a, size_t n = 65536) {
void *stack = malloc(n);
pthread_attr_init(&a);
+#if defined(__linux__)
pthread_attr_setstack(&a, stack, n);
+#endif
return stack;
}
}