Commit c9552286 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

libmbus: patch out bcopy to fix build breakage

parent 7df3db6c
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
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)
     {