From 2c951c8bf15e229342abfa102e4414fd67795e19 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 27 Jan 2015 19:43:54 +0100 Subject: idevicecrashreport: Enable build for win32 --- tools/idevicecrashreport.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/idevicecrashreport.c') diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c index de2edb5..8fcfbd0 100644 --- a/tools/idevicecrashreport.c +++ b/tools/idevicecrashreport.c @@ -32,6 +32,7 @@ #include #ifdef WIN32 +#include #define S_IFLNK S_IFREG #define S_IFSOCK S_IFREG #endif @@ -43,7 +44,11 @@ static int keep_crash_reports = 0; static int file_exists(const char* path) { struct stat tst; +#ifdef WIN32 + return (stat(path, &tst) == 0); +#else return (lstat(path, &tst) == 0); +#endif } static int extract_raw_crash_report(const char* filename) { -- cgit v1.1-32-gdbae