Commit 727b007c authored by Richard M. Stallman's avatar Richard M. Stallman

(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.
parent e89a2cd5
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment