diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c index efaee96..6e6dd6b 100644 --- a/tools/ideviceactivation.c +++ b/tools/ideviceactivation.c @@ -30,6 +30,9 @@ #include #include #include +#ifndef WIN32 +#include +#endif #include #include @@ -137,6 +140,9 @@ int main(int argc, char *argv[]) } op_t; op_t op = OP_NONE; +#ifndef WIN32 + signal(SIGPIPE, SIG_IGN); +#endif /* parse cmdline args */ for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {