Mercurial > hg > xemacs-beta
diff src/systty.h @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 376386a54a3c |
children | 85ec50267440 |
line wrap: on
line diff
--- a/src/systty.h Mon Aug 13 09:42:28 2007 +0200 +++ b/src/systty.h Mon Aug 13 09:43:35 2007 +0200 @@ -350,6 +350,10 @@ It would be nice to autodetect this, but there's unfortunately no general way. */ +/* The above comment is crap, because AC_FUNC_GETPGRP provides just + such a way - mrb. */ + +#if 0 /* mrb */ /* XEmacs backwards-compatibility */ #ifdef GETPGRP_NEEDS_ARG # undef GETPGRP_NO_ARG @@ -364,12 +368,13 @@ # define GETPGRP_NO_ARG # endif #endif +#endif /* 0 */ -#if defined (GETPGRP_NO_ARG) -# define EMACS_GETPGRP(x) getpgrp() +#ifdef GETPGRP_VOID +#define EMACS_GETPGRP(x) getpgrp() #else -# define EMACS_GETPGRP(x) getpgrp(x) -#endif /* !GETPGRP_NO_ARG */ +#define EMACS_GETPGRP(x) getpgrp(x) +#endif /* GETPGRP_VOID */ /* XEmacs backward-compatibility. Is 0 always a reasonable argument? */ #define EMACS_GET_PROCESS_GROUP() EMACS_GETPGRP (0)