packages/: Add ADNS and some of my packages.
[termux-packages] / packages / gdb / gdb-common-job-control.c.patch
CommitLineData
00f9883e
FF
1diff -u -r ../gdb-8.1/gdb/common/job-control.c ./gdb/common/job-control.c
2--- ../gdb-8.1/gdb/common/job-control.c 2018-01-05 05:07:23.000000000 +0100
3+++ ./gdb/common/job-control.c 2018-02-01 21:19:44.732858138 +0100
4@@ -45,10 +45,7 @@
5 if (job_control)
6 {
7 #ifdef HAVE_SETPGID
8- /* The call setpgid (0, 0) is supposed to work and mean the same
9- thing as this, but on Ultrix 4.2A it fails with EPERM (and
10- setpgid (getpid (), getpid ()) succeeds). */
11- retval = setpgid (getpid (), getpid ());
12+ retval = setpgid (0, 0);
13 #else
14 #ifdef HAVE_SETPGRP
15 #ifdef SETPGRP_VOID