From 727b007cb25859b82c6b62fdb02bd0d104851a1d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 10 Nov 1993 20:03:25 +0000 Subject: [PATCH] (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. --- src/systty.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/systty.h b/src/systty.h index 67bf3bf240d..5a166b2fd5d 100644 --- a/src/systty.h +++ b/src/systty.h @@ -271,6 +271,19 @@ static struct sensemode { #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. */ -- 2.39.5