aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2002-11-27 22:55:26 +0000
committerDave Love2002-11-27 22:55:26 +0000
commitf7ff70e8a1b3469c669310afd1ca236b17804df7 (patch)
tree6e1faf1f98f55563e09918483c88668e18e09ca7 /src
parent71cc40d5d4c554d939ffb8c2029ee508cb809822 (diff)
downloademacs-f7ff70e8a1b3469c669310afd1ca236b17804df7.tar.gz
emacs-f7ff70e8a1b3469c669310afd1ca236b17804df7.zip
Don't conditionally define GETPGRP_NO_ARG. Test
GETPGRP_VOID instead. [BSD_TERMIOS]: Remove definitions (never used).
Diffstat (limited to 'src')
-rw-r--r--src/systty.h46
1 files changed, 2 insertions, 44 deletions
diff --git a/src/systty.h b/src/systty.h
index 6aeb2f65a4e..fdd1f70f4c1 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -22,29 +22,6 @@ Boston, MA 02111-1307, USA. */
22#define HAVE_TCATTR 22#define HAVE_TCATTR
23#endif 23#endif
24 24
25/* If we defined these before and we are about to redefine them,
26 prevent alarming warnings. */
27#ifdef BSD_TERMIOS
28#undef NL0
29#undef NL1
30#undef CR0
31#undef CR1
32#undef CR2
33#undef CR3
34#undef TAB0
35#undef TAB1
36#undef TAB2
37#undef XTABS
38#undef BS0
39#undef BS1
40#undef FF0
41#undef FF1
42#undef ECHO
43#undef NOFLSH
44#undef TOSTOP
45#undef FLUSHO
46#undef PENDIN
47#endif
48 25
49/* Include the proper files. */ 26/* Include the proper files. */
50#ifdef HAVE_TERMIO 27#ifdef HAVE_TERMIO
@@ -294,30 +271,11 @@ static struct sensemode {
294 271
295/* EMACS_GETPGRP (arg) returns the process group of the process. */ 272/* EMACS_GETPGRP (arg) returns the process group of the process. */
296 273
297#ifdef __GNU_LIBRARY__ 274#if defined (GETPGRP_VOID)
298/* GNU libc by default defines getpgrp with no args on all systems. */
299#if __GLIBC__ >= 2
300/* glibc-2.1 adds the BSD compatibility getpgrp function
301 if you use _BSD_SOURCE, which Emacs does on GNU/Linux systems. */
302#if __GLIBC_MINOR__ < 1 || ! defined (__FAVOR_BSD)
303#define GETPGRP_NO_ARG
304#endif
305#else /* __GLIBC__ < 2 */
306#define GETPGRP_NO_ARG
307#endif /* __GLIBC__ < 2 */
308#else /* not __GNU_LIBRARY__ */
309#if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
310# if !defined (GETPGRP_NO_ARG)
311# define GETPGRP_NO_ARG
312# endif
313#endif
314#endif /* not __GNU_LIBRARY__ */
315
316#if defined (GETPGRP_NO_ARG)
317# define EMACS_GETPGRP(x) getpgrp() 275# define EMACS_GETPGRP(x) getpgrp()
318#else 276#else
319# define EMACS_GETPGRP(x) getpgrp(x) 277# define EMACS_GETPGRP(x) getpgrp(x)
320#endif /* !GETPGRP_NO_ARG */ 278#endif /* !GETPGRP_VOID */
321 279
322/* Manipulate a TTY's input/output processing parameters. */ 280/* Manipulate a TTY's input/output processing parameters. */
323 281