From 55a2e19e03b81c0c955b409070910b866915c869 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 4 Jan 1999 12:10:38 +0000 Subject: [PATCH] [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of _BSD_SOURCE, the latter is always defined. --- src/systty.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systty.h b/src/systty.h index adc5f5f4961..6aeb2f65a4e 100644 --- a/src/systty.h +++ b/src/systty.h @@ -298,8 +298,8 @@ static struct sensemode { /* 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) + if you use _BSD_SOURCE, which Emacs does on GNU/Linux systems. */ +#if __GLIBC_MINOR__ < 1 || ! defined (__FAVOR_BSD) #define GETPGRP_NO_ARG #endif #else /* __GLIBC__ < 2 */ -- 2.39.2