summaryrefslogtreecommitdiff
path: root/package/libmbus/libmbus-0.6.1-bcopy.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2012-05-03 01:59:03 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-05-03 22:04:11 +0200
commitc95522860fec2fa66b1b9c69cbf703999ea4233b (patch)
tree82a720d86835b1d000768078b89136bc9da5e5fd /package/libmbus/libmbus-0.6.1-bcopy.patch
parent7df3db6c90e4d82dada0daf27ac91262e6702dc3 (diff)
libmbus: patch out bcopy to fix build breakage
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libmbus/libmbus-0.6.1-bcopy.patch')
-rw-r--r--package/libmbus/libmbus-0.6.1-bcopy.patch15
1 files changed, 15 insertions, 0 deletions
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 000000000..8b8310c85
--- /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)
+ {