1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/netkit-rsh/fixup_wait3_api_change.patch
5 # Copyright (C) 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
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)
35 catch_child(int ignore)
42 @@ -471,7 +471,7 @@ catch_child(int ignore)
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)));