From 2a6e1b49fea2c69a1aaac544341cbbe5951097c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= Date: Tue, 25 Nov 2008 16:56:53 +0000 Subject: [PATCH] - drop Patch1: gawk-3.1.3-getpgrp_void.patch, it seems to be a workaround for a bug in gcc that seemed to exist at Fedora Core 1 times, see #114246 --- gawk-3.1.3-getpgrp_void.patch | 45 ----------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 gawk-3.1.3-getpgrp_void.patch diff --git a/gawk-3.1.3-getpgrp_void.patch b/gawk-3.1.3-getpgrp_void.patch deleted file mode 100644 index 50a48f3..0000000 --- a/gawk-3.1.3-getpgrp_void.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- gawk-3.1.3/main.c.getpgrp_void 2004-01-26 12:08:26.000000000 +0100 -+++ gawk-3.1.3/main.c 2004-01-26 12:15:22.000000000 +0100 -@@ -874,14 +874,11 @@ - - PROCINFO_node = install("PROCINFO", - node((NODE *) NULL, Node_var_array, (NODE *) NULL)); -- - #ifdef GETPGRP_VOID --#define getpgrp_arg() /* nothing */ -+ value = getpgrp(); - #else --#define getpgrp_arg() getpid() -+ value = getpgrp(getpid()); - #endif -- -- value = getpgrp(getpgrp_arg()); - aptr = assoc_lookup(PROCINFO_node, tmp_string("pgrpid", 6), FALSE); - *aptr = make_number(value); - ---- gawk-3.1.3/io.c.getpgrp_void 2004-01-26 12:08:36.000000000 +0100 -+++ gawk-3.1.3/io.c 2004-01-26 12:16:04.000000000 +0100 -@@ -1422,11 +1422,6 @@ - return 0; - } - --#ifdef GETPGRP_VOID --#define getpgrp_arg() /* nothing */ --#else --#define getpgrp_arg() getpid() --#endif - - /* pidopen --- "open" /dev/pid, /dev/ppid, and /dev/pgrpid */ - -@@ -1440,7 +1435,11 @@ - warning(_("use `PROCINFO[\"%s\"]' instead of `%s'"), cp, name); - - if (name[6] == 'g') -+#ifdef GETPGRP_VOID -+ sprintf(tbuf, "%d\n", (int) getpgrp()); -+#else - sprintf(tbuf, "%d\n", (int) getpgrp(getpgrp_arg())); -+#endif - else if (name[6] == 'i') - sprintf(tbuf, "%d\n", (int) getpid()); - else