libmbus: bump to version 0.7.0
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
0c7f14af25
commit
92c2409424
@ -1,15 +0,0 @@
|
||||
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)
|
||||
{
|
16
package/libmbus/libmbus-bcopy.patch
Normal file
16
package/libmbus/libmbus-bcopy.patch
Normal file
@ -0,0 +1,16 @@
|
||||
Drop bcopy since it's deprecated.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura libmbus-0.7.0/mbus/mbus-tcp.c libmbus-0.7.0-bcopy/mbus/mbus-tcp.c
|
||||
--- libmbus-0.7.0/mbus/mbus-tcp.c 2011-12-08 13:21:19.000000000 -0300
|
||||
+++ libmbus-0.7.0-bcopy/mbus/mbus-tcp.c 2012-05-03 09:08:36.987106612 -0300
|
||||
@@ -78,7 +78,7 @@
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- bcopy((void *)(host_addr->h_addr), (void *)(&s.sin_addr), host_addr->h_length);
|
||||
+ memmove((void *)(&s.sin_addr), (void *)(host_addr->h_addr), host_addr->h_length);
|
||||
|
||||
if (connect(handle->sock, (struct sockaddr *)&s, sizeof(s)) < 0)
|
||||
{
|
@ -4,8 +4,8 @@
|
||||
#
|
||||
#############################################################
|
||||
|
||||
LIBMBUS_VERSION = 0.6.1
|
||||
LIBMBUS_SITE = http://www.freescada.com/public-dist/
|
||||
LIBMBUS_VERSION = 0.7.0
|
||||
LIBMBUS_SITE = http://www.freescada.com/public-dist
|
||||
LIBMBUS_INSTALL_STAGING = YES
|
||||
|
||||
# Without this the build yields an error:
|
||||
|
Loading…
Reference in New Issue
Block a user