diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-04-09 05:57:50 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-04-09 05:57:50 +0000 |
commit | b46eddcce21682104a7d6d3c9e7f9981e152098b (patch) | |
tree | eca4372d63da4db25bbf51c95782c04dde1dd490 /src | |
parent | ae97aae1dc23d968fc466167773c40b62803164f (diff) | |
download | emacs-b46eddcce21682104a7d6d3c9e7f9981e152098b.tar.gz |
(GETPGRP_NO_ARG): If Glibc 2.1 or later,
don't define this if _BSD_SOURCE is defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/systty.h | 8 |
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 { #ifdef __GNU_LIBRARY__ /* GNU libc by default defines getpgrp with no args on all systems. */ +#if __GLIBC__ >= 2 +/* glibc-2.1 adds the BSD compatibility getpgrp function + if you use __BSD_SOURCE, which Emacs does on GNU/Linux systems. */ +#if __GLIBC_MINOR__ < 1 || ! defined (_BSD_SOURCE) #define GETPGRP_NO_ARG +#endif +#else /* __GLIBC__ < 2 */ +#define GETPGRP_NO_ARG +#endif /* __GLIBC__ < 2 */ #else /* not __GNU_LIBRARY__ */ #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) # if !defined (GETPGRP_NO_ARG) |