Browse Source

don't do signaling if on windows

Caleb James DeLisle 9 years ago
parent
commit
f176d2c027
1 changed files with 2 additions and 0 deletions
  1. 2 0
      contrib/c/makekeys.c

+ 2 - 0
contrib/c/makekeys.c

@@ -36,7 +36,9 @@ int main(int argc, char** argv)
     uint8_t hexPrivateKey[65];
     uint8_t printedIp[40];
 
+#ifndef win32
     signal(SIGPIPE,SIG_DFL);
+#endif
 
     for (;;) {
         Random_bytes(rand, privateKey, 32);