diff --git a/ethstream.c b/ethstream.c index fa0cdbf..4d3c326 100644 --- a/ethstream.c +++ b/ethstream.c @@ -457,8 +457,10 @@ int main(int argc, char *argv[]) signal(SIGINT, handle_sig); signal(SIGTERM, handle_sig); +#ifdef SIGPIPE /* not on Windows */ /* Ignore SIGPIPE so I/O errors to the network device won't kill the process */ signal(SIGPIPE, SIG_IGN); +#endif if (detect) { info("Autodetecting NerdJack address\n");