aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/systty.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systty.h b/src/systty.h
index fda88d4c9da..4b8c2262ea0 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -296,7 +296,15 @@ static struct sensemode {
296 296
297#ifdef __GNU_LIBRARY__ 297#ifdef __GNU_LIBRARY__
298/* GNU libc by default defines getpgrp with no args on all systems. */ 298/* GNU libc by default defines getpgrp with no args on all systems. */
299#if __GLIBC__ >= 2
300/* glibc-2.1 adds the BSD compatibility getpgrp function
301 if you use __BSD_SOURCE, which Emacs does on GNU/Linux systems. */
302#if __GLIBC_MINOR__ < 1 || ! defined (_BSD_SOURCE)
299#define GETPGRP_NO_ARG 303#define GETPGRP_NO_ARG
304#endif
305#else /* __GLIBC__ < 2 */
306#define GETPGRP_NO_ARG
307#endif /* __GLIBC__ < 2 */
300#else /* not __GNU_LIBRARY__ */ 308#else /* not __GNU_LIBRARY__ */
301#if defined (USG) && !defined (GETPGRP_NEEDS_ARG) 309#if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
302# if !defined (GETPGRP_NO_ARG) 310# if !defined (GETPGRP_NO_ARG)