Browse Source

Fix windows build

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@9685 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/ethstream-1.3
jim 12 years ago
parent
commit
640edf6aab
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ethstream.c

+ 2
- 0
ethstream.c View File

@@ -457,8 +457,10 @@ int main(int argc, char *argv[])
signal(SIGINT, handle_sig); signal(SIGINT, handle_sig);
signal(SIGTERM, 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 */ /* Ignore SIGPIPE so I/O errors to the network device won't kill the process */
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
#endif


if (detect) { if (detect) {
info("Autodetecting NerdJack address\n"); info("Autodetecting NerdJack address\n");


Loading…
Cancel
Save