diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile.am | 5 | ||||
-rw-r--r-- | tools/idevicecrashreport.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am index 698e083..db929bb 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -3,7 +3,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir) AM_CFLAGS = $(GLOBAL_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(libgcrypt_CFLAGS) $(openssl_CFLAGS) $(libplist_CFLAGS) $(LFS_CFLAGS) AM_LDFLAGS = $(libgnutls_LIBS) $(libtasn1_LIBS) $(libgcrypt_LIBS) $(openssl_LIBS) $(libplist_LIBS) -bin_PROGRAMS = idevice_id ideviceinfo idevicename idevicepair idevicesyslog ideviceimagemounter idevicescreenshot ideviceenterrecovery idevicedate idevicebackup idevicebackup2 ideviceprovision idevicedebugserverproxy idevicediagnostics idevicedebug idevicenotificationproxy +bin_PROGRAMS = idevice_id ideviceinfo idevicename idevicepair idevicesyslog ideviceimagemounter idevicescreenshot ideviceenterrecovery idevicedate idevicebackup idevicebackup2 ideviceprovision idevicedebugserverproxy idevicediagnostics idevicedebug idevicenotificationproxy idevicecrashreport ideviceinfo_SOURCES = ideviceinfo.c ideviceinfo_CFLAGS = $(AM_CFLAGS) @@ -85,10 +85,7 @@ idevicenotificationproxy_CFLAGS = $(AM_CFLAGS) idevicenotificationproxy_LDFLAGS = $(AM_LDFLAGS) idevicenotificationproxy_LDADD = $(top_builddir)/src/libimobiledevice.la -if !WIN32 -bin_PROGRAMS += idevicecrashreport idevicecrashreport_SOURCES = idevicecrashreport.c idevicecrashreport_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) idevicecrashreport_LDFLAGS = $(top_builddir)/common/libinternalcommon.la $(AM_LDFLAGS) idevicecrashreport_LDADD = $(top_builddir)/src/libimobiledevice.la -endif 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 <plist/plist.h> #ifdef WIN32 +#include <windows.h> #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) { |