mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-06 16:26:18 +08:00
fix some compile problems with mingw
This commit is contained in:
@@ -50,6 +50,11 @@
|
||||
#define LWIP_PROVIDE_ERRNO /* provide errno for non-MSVC */
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define LWIP_TIMEVAL_PRIVATE 0
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
/* Define platform endianness (might already be defined) */
|
||||
#ifndef BYTE_ORDER
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
@@ -102,7 +102,6 @@ pcapifh_alloc_readonly_copy(void *data, size_t len)
|
||||
lwip_win32_platform_diag("VirtualProtect failed: %d\n", GetLastError());
|
||||
while(1);
|
||||
}
|
||||
printf("pcapifh_alloc_readonly_copy(%d): 0x%08x\n", len, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user