Dash:
[t2.git] / package / network / netkit-rsh / fixup_wait3_api_change.patch
blob8301004973945da7a3c82c498e3ae28cb9747f00
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/*/netkit-rsh/fixup_wait3_api_change.patch
5 # Copyright (C) 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Fix build issue do to Deprecate union wait and remove support from wait functions [BZ #19613]
19 | rlogin.c: In function 'catch_child':
20 | rlogin.c:463:13: error: storage size of 'status' isn't known
21 | union wait status;
23 https://sourceware.org/ml/libc-alpha/2016-02/msg00342.html
25 Upstream-Status: Inappropriate [ no upstream maintaner ]
27 Signed-off-by Armin Kuster <akuster@mvista.com>
29 Index: netkit-rsh-0.17/rlogin/rlogin.c
30 ===================================================================
31 --- netkit-rsh-0.17.orig/rlogin/rlogin.c
32 +++ netkit-rsh-0.17/rlogin/rlogin.c
33 @@ -460,7 +460,7 @@ writeroob(int ignore)
34 void
35 catch_child(int ignore)
37 - union wait status;
38 + int status;
39 int pid;
41 (void)ignore;
42 @@ -471,7 +471,7 @@ catch_child(int ignore)
43 return;
44 /* if the child (reader) dies, just quit */
45 if (pid < 0 || (pid == childpid && !WIFSTOPPED(status)))
46 - done((int)(status.w_termsig | status.w_retcode));
47 + done((int)(WTERMSIG(status) | WEXITSTATUS(status)));
49 /* NOTREACHED */