Added patch for lwip-contrib for Windows compatibility

This commit is contained in:
Joseph Henry
2018-07-27 15:49:58 -07:00
parent 6e086ed3fa
commit 6e3e14fdff
3 changed files with 107 additions and 82 deletions

15
ext/lwip-contrib.patch Normal file
View File

@@ -0,0 +1,15 @@
diff --git a/ports/win32/include/arch/cc.h b/ports/win32/include/arch/cc.h
index 334be07..9384b70 100644
--- a/ports/win32/include/arch/cc.h
+++ b/ports/win32/include/arch/cc.h
@@ -78,8 +78,8 @@ typedef int sys_prot_t;
#ifdef _MSC_VER
/* C runtime functions redefined */
-#define snprintf _snprintf
-#define strdup _strdup
+//#define snprintf _snprintf
+//#define strdup _strdup
#endif
#define PPP_INCLUDE_SETTINGS_HEADER