aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2000-06-23 16:35:41 +0000
committerDave Love2000-06-23 16:35:41 +0000
commitc8875a656cfba42f646c4f7e25429e2c3b1588ce (patch)
tree9aa87766aa2a1817c7efcc4ea20324d5e01ac230 /src
parente5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2 (diff)
downloademacs-c8875a656cfba42f646c4f7e25429e2c3b1588ce.tar.gz
emacs-c8875a656cfba42f646c4f7e25429e2c3b1588ce.zip
Undefine setpgrp before setting it.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 7d1008584a6..39973d6cbd7 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -84,6 +84,7 @@ extern int h_errno;
84 84
85#ifdef HAVE_SETPGID 85#ifdef HAVE_SETPGID
86#if !defined (USG) || defined (BSD_PGRPS) 86#if !defined (USG) || defined (BSD_PGRPS)
87#undef setpgrp
87#define setpgrp setpgid 88#define setpgrp setpgid
88#endif 89#endif
89#endif 90#endif
@@ -6503,8 +6504,8 @@ run_mac_command (argv, workdir, infn, outfn, errfn)
6503 { 6504 {
6504 char *command, *t, tempmacpathname[MAXPATHLEN+1]; 6505 char *command, *t, tempmacpathname[MAXPATHLEN+1];
6505 6506
6506 /* The arguments for the command in argv[2] are separated by spaces. Count them and put 6507 /* The arguments for the command in argv[2] are separated by
6507 the count in newargc. */ 6508 spaces. Count them and put the count in newargc. */
6508 command = (char *) alloca (strlen (argv[2])+2); 6509 command = (char *) alloca (strlen (argv[2])+2);
6509 strcpy (command, argv[2]); 6510 strcpy (command, argv[2]);
6510 if (command[strlen (command) - 1] != ' ') 6511 if (command[strlen (command) - 1] != ' ')