* [Buildroot] [PATCH] libmbus: patch out bcopy to fix build breakage
@ 2012-05-03 11:59 Gustavo Zacarias
2012-05-03 20:04 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2012-05-03 11:59 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/libmbus/libmbus-0.6.1-bcopy.patch | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 package/libmbus/libmbus-0.6.1-bcopy.patch
diff --git a/package/libmbus/libmbus-0.6.1-bcopy.patch b/package/libmbus/libmbus-0.6.1-bcopy.patch
new file mode 100644
index 0000000..8b8310c
--- /dev/null
+++ b/package/libmbus/libmbus-0.6.1-bcopy.patch
@@ -0,0 +1,15 @@
+Drop bcopy since it's deprecated.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+diff -Nura libmbus-0.6.1/mbus/mbus-tcp.c libmbus-0.6.1-bcopy/mbus/mbus-tcp.c
+--- libmbus-0.6.1/mbus/mbus-tcp.c 2011-11-06 02:34:28.000000000 -0300
++++ libmbus-0.6.1-bcopy/mbus/mbus-tcp.c 2012-05-03 08:11:39.680346347 -0300
+@@ -78,7 +78,7 @@
+ return NULL;
+ }
+
+- bcopy((void *)(host_addr->h_addr), (void *)(&s_addr.sin_addr), host_addr->h_length);
++ memmove((void *)(&s_addr.sin_addr), (void *)(host_addr->h_addr), host_addr->h_length);
+
+ if (connect(handle->sock, (struct sockaddr *)&s_addr, sizeof(s_addr)) < 0)
+ {
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libmbus: patch out bcopy to fix build breakage
2012-05-03 11:59 [Buildroot] [PATCH] libmbus: patch out bcopy to fix build breakage Gustavo Zacarias
@ 2012-05-03 20:04 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2012-05-03 20:04 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-03 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 11:59 [Buildroot] [PATCH] libmbus: patch out bcopy to fix build breakage Gustavo Zacarias
2012-05-03 20:04 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox