summaryrefslogtreecommitdiff
path: root/spec/rubyspec
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-15 11:25:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-15 11:25:56 +0000
commitdc65024475e98227a6ed43fe3e5f0bc5170b2c17 (patch)
tree28bb6adfb50bd6ad6b3527b4b8de137619c302ee /spec/rubyspec
parent604e552525bcd189ef9386079272859aae49a173 (diff)
thread_spec.c: use rb_w32_pipe
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec')
-rw-r--r--spec/rubyspec/optional/capi/ext/thread_spec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/rubyspec/optional/capi/ext/thread_spec.c b/spec/rubyspec/optional/capi/ext/thread_spec.c
index 78e8183129..d2e937fd2a 100644
--- a/spec/rubyspec/optional/capi/ext/thread_spec.c
+++ b/spec/rubyspec/optional/capi/ext/thread_spec.c
@@ -7,6 +7,9 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if defined(_WIN32)
+#define pipe(p) rb_w32_pipe(p)
+#endif
#ifdef __cplusplus
extern "C" {