# HG changeset patch # User Richard M. Stallman # Date 752961805 0 # Node ID afa76fe24878af61460f8c000c7fa686083dfe2a # Parent 8d58e388e71b317e89dd5832e20aa0fce7b6f419 (EMACS_GETPGRP): New macro hides argument passing to system getpgrp. Reinstate some semblance of control over this macros behaviour by paying attention to GETPGRP_NO_ARG. diff -r 8d58e388e71b -r afa76fe24878 src/systty.h --- a/src/systty.h Wed Nov 10 20:02:50 1993 +0000 +++ b/src/systty.h Wed Nov 10 20:03:25 1993 +0000 @@ -271,6 +271,19 @@ #endif +/* EMACS_GETPGRP (arg) returns the process group of the terminal. */ + +#if defined (USG) && !defined (GETPGRP_NEEDS_ARG) +# if !defined (GETPGRP_NO_ARG) +# define GETPGRP_NO_ARG +# endif +#endif + +#if defined (GETPGRP_NO_ARG) +# define EMACS_GETPGRP(x) getpgrp() +#else +# define EMACS_GETPGRP(x) getpgrp(x) +#endif /* !GETPGRP_NO_ARG */ /* Manipulate a TTY's input/output processing parameters. */