git: fix build with with no threads
[buildroot-gz.git] / package / pptp-linux / 0001-susv3-legacy.patch
blob5cc9f57809e49d9e88c5138ee6f42c924156a23f
1 bzero is deprecated in POSIX.1-2001 and removed for POSIX.1-2008 so
2 switch to memset instead.
4 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
6 diff -Nura pptp-1.8.0.orig/pptp_callmgr.c pptp-1.8.0/pptp_callmgr.c
7 --- pptp-1.8.0.orig/pptp_callmgr.c 2013-10-23 05:10:46.000000000 -0300
8 +++ pptp-1.8.0/pptp_callmgr.c 2014-03-31 16:47:42.617643298 -0300
9 @@ -340,7 +340,7 @@
11 #endif
12 if (localbind.s_addr != INADDR_NONE) {
13 - bzero(&src, sizeof(src));
14 + memset(&src, 0, sizeof(src));
15 src.i.sin_family = AF_INET;
16 src.i.sin_addr = localbind;
17 if (bind(s, &src.a, sizeof(src.i)) != 0) {
18 diff -Nura pptp-1.8.0.orig/pptp_gre.c pptp-1.8.0/pptp_gre.c
19 --- pptp-1.8.0.orig/pptp_gre.c 2013-10-23 05:10:46.000000000 -0300
20 +++ pptp-1.8.0/pptp_gre.c 2014-03-31 16:47:30.745249066 -0300
21 @@ -103,7 +103,7 @@
23 #endif
24 if (localbind.s_addr != INADDR_NONE) {
25 - bzero(&loc_addr, sizeof(loc_addr));
26 + memset(&loc_addr, 0, sizeof(loc_addr));
27 loc_addr.i.sin_family = AF_INET;
28 loc_addr.i.sin_addr = localbind;
29 if (bind(s, &loc_addr.a, sizeof(loc_addr.i)) != 0) {