Explorar el Código

don't do signaling if on windows

Caleb James DeLisle hace 9 años
padre
commit
f176d2c027
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 hexPrivateKey[65];
     uint8_t printedIp[40];
     uint8_t printedIp[40];
 
 
+#ifndef win32
     signal(SIGPIPE,SIG_DFL);
     signal(SIGPIPE,SIG_DFL);
+#endif
 
 
     for (;;) {
     for (;;) {
         Random_bytes(rand, privateKey, 32);
         Random_bytes(rand, privateKey, 32);