From: Ulf Samuelsson Date: Wed, 14 Jan 2009 22:52:31 +0000 (-0000) Subject: Update deprecated bmove to memmove in ttcp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3c2eed5d8a9e976862353ec0e01165aaccf5f91;p=buildroot.git Update deprecated bmove to memmove in ttcp --- diff --git a/package/ttcp/ttcp-bcopy.patch b/package/ttcp/ttcp-bcopy.patch new file mode 100644 index 0000000000..c98c88f360 --- /dev/null +++ b/package/ttcp/ttcp-bcopy.patch @@ -0,0 +1,12 @@ +diff -urN ttcp-0rig/ttcp.c ttcp/ttcp.c +--- ttcp-0rig/ttcp.c 1993-05-17 00:00:00.000000000 +0200 ++++ ttcp/ttcp.c 2009-01-14 23:46:19.000000000 +0100 +@@ -241,7 +241,7 @@ + if ((addr=gethostbyname(host)) == NULL) + err("bad hostname"); + sinhim.sin_family = addr->h_addrtype; +- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length); ++ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length); + #if defined(cray) + sinhim.sin_addr = addr_tmp; + #else diff --git a/package/ttcp/ttcp.mk b/package/ttcp/ttcp.mk index 7d6d942653..d118bebe79 100644 --- a/package/ttcp/ttcp.mk +++ b/package/ttcp/ttcp.mk @@ -15,6 +15,7 @@ $(DL_DIR)/$(TTCP_SOURCE): $(TTCP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE) -mkdir $(TTCP_BUILD_DIR) cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR) + toolchain/patch-kernel.sh $(TTCP_DIR) package/ttcp/ ttcp-\*.patch touch $(TTCP_BUILD_DIR)/.unpacked $(TTCP_BUILD_DIR)/.configured: $(TTCP_BUILD_DIR)/.unpacked