strongswan: add missing patch for avoiding collisions with uclibc functions
[openwrt/svn-archive/archive.git] / net / strongswan / patches / 100-method_name_fix.patch
1 --- a/src/libipsec/ip_packet.c
2 +++ b/src/libipsec/ip_packet.c
3 @@ -95,7 +95,7 @@ METHOD(ip_packet_t, get_next_header, u_i
4 return this->next_header;
5 }
6
7 -METHOD(ip_packet_t, clone, ip_packet_t*,
8 +METHOD(ip_packet_t, clone_, ip_packet_t*,
9 private_ip_packet_t *this)
10 {
11 return ip_packet_create(chunk_clone(this->packet));
12 @@ -183,7 +183,7 @@ ip_packet_t *ip_packet_create(chunk_t pa
13 .get_destination = _get_destination,
14 .get_next_header = _get_next_header,
15 .get_encoding = _get_encoding,
16 - .clone = _clone,
17 + .clone = _clone_,
18 .destroy = _destroy,
19 },
20 .src = src,
21 --- a/src/libipsec/esp_packet.c
22 +++ b/src/libipsec/esp_packet.c
23 @@ -115,7 +115,7 @@ METHOD(packet_t, skip_bytes, void,
24 return this->packet->skip_bytes(this->packet, bytes);
25 }
26
27 -METHOD(packet_t, clone, packet_t*,
28 +METHOD(packet_t, clone_, packet_t*,
29 private_esp_packet_t *this)
30 {
31 private_esp_packet_t *pkt;
32 @@ -414,7 +414,7 @@ static private_esp_packet_t *esp_packet_
33 .get_dscp = _get_dscp,
34 .set_dscp = _set_dscp,
35 .skip_bytes = _skip_bytes,
36 - .clone = _clone,
37 + .clone = _clone_,
38 .destroy = _destroy,
39 },
40 .get_source = _get_source,