diff options
| author | Jeff Olson <olson.jeffery@gmail.com> | 2013-08-21 15:13:01 -0700 |
|---|---|---|
| committer | Jeff Olson <olson.jeffery@gmail.com> | 2013-08-22 16:31:58 -0700 |
| commit | c0fba3c4acc52dba67461e485a3798cfa236761b (patch) | |
| tree | 1180d9a883a33f8287442a1a83e990b011e06f48 /src/rt/rust_uv.cpp | |
| parent | 10ff5355b3668cb14ffde844abd49457a61c87cc (diff) | |
| download | rust-c0fba3c4acc52dba67461e485a3798cfa236761b.tar.gz rust-c0fba3c4acc52dba67461e485a3798cfa236761b.zip | |
rt: re-adding lines erroneous stripped out in merge conflict
Diffstat (limited to 'src/rt/rust_uv.cpp')
| -rw-r--r-- | src/rt/rust_uv.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp index 43e6b97bc18..f90931dbea9 100644 --- a/src/rt/rust_uv.cpp +++ b/src/rt/rust_uv.cpp @@ -13,12 +13,21 @@ #include <malloc.h> #endif +#ifndef __WIN32__ +// for signal +#include <signal.h> +#endif + #include "uv.h" #include "rust_globals.h" extern "C" void* rust_uv_loop_new() { +// XXX libuv doesn't always ignore SIGPIPE even though we don't need it. +#ifndef __WIN32__ + signal(SIGPIPE, SIG_IGN); +#endif return (void*)uv_loop_new(); } |
