summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-08-24 11:33:19 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-08-24 11:33:19 +0000
commit390f78359676ca706ba6899323e6a89af01b0eb5 (patch)
tree50fb53ade3160564ba87b642470556df6a5ac3b9 /sys-apps/shadow/files
parentMasked smalltalkx. Needs more testing (diff)
downloadgentoo-2-390f78359676ca706ba6899323e6a89af01b0eb5.tar.gz
gentoo-2-390f78359676ca706ba6899323e6a89af01b0eb5.tar.bz2
gentoo-2-390f78359676ca706ba6899323e6a89af01b0eb5.zip
Fix compiling with gcc-2.95.x
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps/shadow/files')
-rw-r--r--sys-apps/shadow/files/shadow-4.0.12-gcc2.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-apps/shadow/files/shadow-4.0.12-gcc2.patch b/sys-apps/shadow/files/shadow-4.0.12-gcc2.patch
new file mode 100644
index 000000000000..b70dbceffc56
--- /dev/null
+++ b/sys-apps/shadow/files/shadow-4.0.12-gcc2.patch
@@ -0,0 +1,30 @@
+Fix compiling with gcc-2.95.x:
+
+-----
+newgrp.c: In function `main':
+newgrp.c:459: parse error before `child'
+newgrp.c:467: `child' undeclared (first use in this function)
+newgrp.c:467: (Each undeclared identifier is reported only once
+newgrp.c:467: for each function it appears in.)
+newgrp.c:476: `pid' undeclared (first use in this function)
+make[2]: *** [newgrp.o] Error 1
+-----
+
+--- shadow-4.0.12/src/newgrp.c 2005-08-24 13:30:51.000000000 +0200
++++ shadow-4.0.12.az/src/newgrp.c 2005-08-24 13:31:01.000000000 +0200
+@@ -424,6 +424,7 @@
+ if (getdef_bool ("SYSLOG_SG_ENAB")) {
+ char *loginname = getlogin ();
+ char *tty = ttyname (0);
++ pid_t child, pid;
+
+ if (loginname != NULL)
+ loginname = xstrdup (loginname);
+@@ -456,7 +457,6 @@
+ * avoid any possibility of the parent being stopped when it
+ * receives SIGCHLD from the terminating subshell. -- JWP
+ */
+- pid_t child, pid;
+
+ signal (SIGINT, SIG_IGN);
+ signal (SIGQUIT, SIG_IGN);