Commit e0b5b76c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(GETPGRP_NO_ARG): If Glibc 2.1 or later,

don't define this if _BSD_SOURCE is defined.
parent b1377d7f
...@@ -296,7 +296,15 @@ static struct sensemode { ...@@ -296,7 +296,15 @@ static struct sensemode {
#ifdef __GNU_LIBRARY__ #ifdef __GNU_LIBRARY__
/* GNU libc by default defines getpgrp with no args on all systems. */ /* 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 #define GETPGRP_NO_ARG
#endif
#else /* __GLIBC__ < 2 */
#define GETPGRP_NO_ARG
#endif /* __GLIBC__ < 2 */
#else /* not __GNU_LIBRARY__ */ #else /* not __GNU_LIBRARY__ */
#if defined (USG) && !defined (GETPGRP_NEEDS_ARG) #if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
# if !defined (GETPGRP_NO_ARG) # if !defined (GETPGRP_NO_ARG)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment