vcpkg/ports/libirecovery/004_fix_tools_msvc.patch
Weihang Ding 2337b851fe
[libirecovery] Add tools feature (#33868)
* [libirecovery] Add tools feature

* Update version database

* Remove tools from default-features

* Update version database
2023-09-22 16:05:44 -07:00

15 lines
302 B
Diff

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>