diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/systty.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/systty.h b/src/systty.h index 4814c913b01..59e5ad813f7 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -292,13 +292,18 @@ static struct sensemode { | |||
| 292 | 292 | ||
| 293 | #endif | 293 | #endif |
| 294 | 294 | ||
| 295 | /* EMACS_GETPGRP (arg) returns the process group of the terminal. */ | 295 | /* EMACS_GETPGRP (arg) returns the process group of the process. */ |
| 296 | 296 | ||
| 297 | #ifdef __GNU_LIBRARY__ | ||
| 298 | /* GNU libc by default defines getpgrp with no args on all systems. */. | ||
| 299 | #define GETPGRP_NO_ARG | ||
| 300 | #else /* not __GNU_LIBRARY__ */ | ||
| 297 | #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) | 301 | #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) |
| 298 | # if !defined (GETPGRP_NO_ARG) | 302 | # if !defined (GETPGRP_NO_ARG) |
| 299 | # define GETPGRP_NO_ARG | 303 | # define GETPGRP_NO_ARG |
| 300 | # endif | 304 | # endif |
| 301 | #endif | 305 | #endif |
| 306 | #endif /* not __GNU_LIBRARY__ */ | ||
| 302 | 307 | ||
| 303 | #if defined (GETPGRP_NO_ARG) | 308 | #if defined (GETPGRP_NO_ARG) |
| 304 | # define EMACS_GETPGRP(x) getpgrp() | 309 | # define EMACS_GETPGRP(x) getpgrp() |