vcpkg/ports/libirecovery/004_fix_tools_msvc.patch

15 lines
302 B
Diff
Raw Normal View History

diff --git a/tools/irecovery.c b/tools/irecovery.c
index 34e80bf..deffe89 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -27,7 +27,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef _MSC_VER
#include <unistd.h>
+#endif
#include <string.h>
#include <getopt.h>
#include <inttypes.h>