summaryrefslogtreecommitdiff
path: root/src/systty.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-29 05:04:29 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-29 05:04:29 +0000
commit281bbdfb6aca217575a830c3a62fcb802cd46a29 (patch)
treed8eea7e7073b40d56b6a7d0ab5cd556000b21c94 /src/systty.h
parent5377087736872b0ea7e400647a986ef6f74d58ef (diff)
(GETPGRP_NO_ARG): Always define it, if __GNU_LIBRARY__.
Diffstat (limited to 'src/systty.h')
-rw-r--r--src/systty.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/systty.h b/src/systty.h
index 4814c913b0..59e5ad813f 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -292,13 +292,18 @@ static struct sensemode {
#endif
-/* EMACS_GETPGRP (arg) returns the process group of the terminal. */
+/* EMACS_GETPGRP (arg) returns the process group of the process. */
+#ifdef __GNU_LIBRARY__
+/* GNU libc by default defines getpgrp with no args on all systems. */.
+#define GETPGRP_NO_ARG
+#else /* not __GNU_LIBRARY__ */
#if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
# if !defined (GETPGRP_NO_ARG)
# define GETPGRP_NO_ARG
# endif
#endif
+#endif /* not __GNU_LIBRARY__ */
#if defined (GETPGRP_NO_ARG)
# define EMACS_GETPGRP(x) getpgrp()