diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2012-05-31 09:23:23 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-05-31 09:23:23 +0200 |
commit | bdb4c3a6dc9efecc4d1e40fabf8cb9b3e0eb3ee2 (patch) | |
tree | d6012109e704c5e9abc709c23a7133a3d4b4f779 /package/libmbus/libmbus-bcopy.patch | |
parent | 5b11223fb6cd0469becf49b0986868832c076bfc (diff) | |
parent | 2105ecbd86d04e446effa11108f6bd755ed5f19a (diff) |
Merge branch 'next'
Conflicts:
toolchain/kernel-headers/Config.in
Diffstat (limited to 'package/libmbus/libmbus-bcopy.patch')
-rw-r--r-- | package/libmbus/libmbus-bcopy.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/libmbus/libmbus-bcopy.patch b/package/libmbus/libmbus-bcopy.patch new file mode 100644 index 000000000..660cc3775 --- /dev/null +++ b/package/libmbus/libmbus-bcopy.patch @@ -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) + { |