1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00

Undefine setpgrp before setting it.

This commit is contained in:
Dave Love 2000-06-23 16:35:41 +00:00
parent e5ef3cdf11
commit c8875a656c

View File

@ -84,6 +84,7 @@ extern int h_errno;
#ifdef HAVE_SETPGID #ifdef HAVE_SETPGID
#if !defined (USG) || defined (BSD_PGRPS) #if !defined (USG) || defined (BSD_PGRPS)
#undef setpgrp
#define setpgrp setpgid #define setpgrp setpgid
#endif #endif
#endif #endif
@ -6503,8 +6504,8 @@ run_mac_command (argv, workdir, infn, outfn, errfn)
{ {
char *command, *t, tempmacpathname[MAXPATHLEN+1]; char *command, *t, tempmacpathname[MAXPATHLEN+1];
/* The arguments for the command in argv[2] are separated by spaces. Count them and put /* The arguments for the command in argv[2] are separated by
the count in newargc. */ spaces. Count them and put the count in newargc. */
command = (char *) alloca (strlen (argv[2])+2); command = (char *) alloca (strlen (argv[2])+2);
strcpy (command, argv[2]); strcpy (command, argv[2]);
if (command[strlen (command) - 1] != ' ') if (command[strlen (command) - 1] != ' ')