diff options
Diffstat (limited to 'tools/idevicedate.c')
| -rw-r--r-- | tools/idevicedate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/idevicedate.c b/tools/idevicedate.c index 2676880..4de90b6 100644 --- a/tools/idevicedate.c +++ b/tools/idevicedate.c | |||
| @@ -30,6 +30,9 @@ | |||
| 30 | #if HAVE_LANGINFO_CODESET | 30 | #if HAVE_LANGINFO_CODESET |
| 31 | #include <langinfo.h> | 31 | #include <langinfo.h> |
| 32 | #endif | 32 | #endif |
| 33 | #ifndef WIN32 | ||
| 34 | #include <signal.h> | ||
| 35 | #endif | ||
| 33 | 36 | ||
| 34 | #include <libimobiledevice/libimobiledevice.h> | 37 | #include <libimobiledevice/libimobiledevice.h> |
| 35 | #include <libimobiledevice/lockdown.h> | 38 | #include <libimobiledevice/lockdown.h> |
| @@ -76,6 +79,9 @@ int main(int argc, char *argv[]) | |||
| 76 | char buffer[80]; | 79 | char buffer[80]; |
| 77 | int result = 0; | 80 | int result = 0; |
| 78 | 81 | ||
| 82 | #ifndef WIN32 | ||
| 83 | signal(SIGPIPE, SIG_IGN); | ||
| 84 | #endif | ||
| 79 | /* parse cmdline args */ | 85 | /* parse cmdline args */ |
| 80 | for (i = 1; i < argc; i++) { | 86 | for (i = 1; i < argc; i++) { |
| 81 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 87 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
