fixup_wait3_api_change.patch 1022 B

12345678910111213141516171819202122232425262728293031323334
  1. Fix build issue do to Deprecate union wait and remove support from wait functions [BZ #19613]
  2. | rlogin.c: In function 'catch_child':
  3. | rlogin.c:463:13: error: storage size of 'status' isn't known
  4. | union wait status;
  5. https://sourceware.org/ml/libc-alpha/2016-02/msg00342.html
  6. Upstream-Status: Inappropriate [ no upstream maintaner ]
  7. Signed-off-by: Armin Kuster <akuster@mvista.com>
  8. Index: netkit-rsh-0.17/rlogin/rlogin.c
  9. ===================================================================
  10. --- netkit-rsh-0.17.orig/rlogin/rlogin.c
  11. +++ netkit-rsh-0.17/rlogin/rlogin.c
  12. @@ -460,7 +460,7 @@ writeroob(int ignore)
  13. void
  14. catch_child(int ignore)
  15. {
  16. - union wait status;
  17. + int status;
  18. int pid;
  19. (void)ignore;
  20. @@ -471,7 +471,7 @@ catch_child(int ignore)
  21. return;
  22. /* if the child (reader) dies, just quit */
  23. if (pid < 0 || (pid == childpid && !WIFSTOPPED(status)))
  24. - done((int)(status.w_termsig | status.w_retcode));
  25. + done((int)(WTERMSIG(status) | WEXITSTATUS(status)));
  26. }
  27. /* NOTREACHED */
  28. }