From 640edf6aab49e4084d79db2b9e438032fce7328e Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 6 Jun 2011 15:03:45 +0000 Subject: [PATCH] Fix windows build git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@9685 ddd99763-3ecb-0310-9145-efcb8ce7c51f --- ethstream.c | 2 ++ 1 file changed, 2 insertions(+) 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");