diff --git a/tool/tool.cc b/tool/tool.cc index 7bec7a2b6..96bde3335 100644 --- a/tool/tool.cc +++ b/tool/tool.cc @@ -24,6 +24,7 @@ #include #else #include +#include #endif #include "internal.h" @@ -106,6 +107,8 @@ int main(int argc, char **argv) { perror("_setmode(_fileno(stderr), O_BINARY)"); return 1; } +#else + signal(SIGPIPE, SIG_IGN); #endif CRYPTO_library_init();