Mercurial > emacs
changeset 17350:d8d51043c2c5
(GETPGRP_NO_ARG): If Glibc 2.1 or later,
don't define this if _BSD_SOURCE is defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 09 Apr 1997 05:57:50 +0000 |
parents | 98ab53aa2e6c |
children | e53338c19ba5 |
files | src/systty.h |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/systty.h Wed Apr 09 04:01:31 1997 +0000 +++ b/src/systty.h Wed Apr 09 05:57:50 1997 +0000 @@ -296,7 +296,15 @@ #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)