|
楼主 |
发表于 2009-1-13 22:28:06
|
显示全部楼层
谢谢aozima
是补丁打不成功。
因为环境变量设好了,所以patch是可以找到的。
比如一个简单的patch文件:
src/netif/etharp.c: In function ‘etharp_arp_input’:
src/netif/etharp.c:708: warning: dereferencing type-punned pointer will break strict-aliasing rules
Index: src/netif/etharp.c
===================================================================
RCS file: /sources/lwip/lwip/src/netif/etharp.c,v
retrieving revision 1.148
diff -u -p -r1.148 etharp.c
--- src/netif/etharp.c 19 Jun 2008 16:40:59 -0000 1.148
+++ src/netif/etharp.c 3 Oct 2008 09:39:55 -0000
@@ -705,7 +705,7 @@ etharp_arp_input(struct netif *netif, st
hdr->opcode = htons(ARP_REPLY);
hdr->dipaddr = hdr->sipaddr;
- hdr->sipaddr = *(struct ip_addr2 *)&netif->ip_addr;
+ memcpy(&hdr->sipaddr, &netif->ip_addr, sizeof(hdr->sipaddr));
LWIP_ASSERT("netif->hwaddr_len must be the same as ETHARP_HWADDR_LEN for etharp!",
(netif->hwaddr_len == ETHARP_HWADDR_LEN));
--
会提示无法找到文件来patch
如这行:@@ -705,7 +705,7 @@ etharp_arp_input(struct netif *netif, st
待打补丁的源文件etharp.c(文件大小:42K) (原文件名:etharp.txt)
如果方便的话, 不妨试一下。 谢谢。
|
|