# HG changeset patch # User Richard M. Stallman # Date 1008109220 0 # Node ID e669966d496ebd1b865d6c53a2c34526ba2df62c # Parent 464d0a0dcf2e804f3c29ab7ac27609dc2dcdac77 Test GNU_LINUX, not LINUX. diff -r 464d0a0dcf2e -r e669966d496e src/Makefile.in --- a/src/Makefile.in Tue Dec 11 22:13:11 2001 +0000 +++ b/src/Makefile.in Tue Dec 11 22:20:20 2001 +0000 @@ -109,7 +109,7 @@ /* GNU libc requires ORDINARY_LINK so that its own crt0 is used. Linux is an exception because it uses a funny variant of GNU libc. */ #ifdef __GNU_LIBRARY__ -#ifndef LINUX +#ifndef GNU_LINUX #define ORDINARY_LINK #endif #endif diff -r 464d0a0dcf2e -r e669966d496e src/dispnew.c --- a/src/dispnew.c Tue Dec 11 22:13:11 2001 +0000 +++ b/src/dispnew.c Tue Dec 11 22:20:20 2001 +0000 @@ -101,7 +101,7 @@ #endif #endif /* not __GNU_LIBRARY__ */ -#if defined(HAVE_TERM_H) && defined (LINUX) && defined (HAVE_LIBNCURSES) +#if defined(HAVE_TERM_H) && defined (GNU_LINUX) && defined (HAVE_LIBNCURSES) #include /* for tgetent */ #endif @@ -6397,7 +6397,7 @@ #else Vwindow_system_version = make_number (10); #endif -#if defined (LINUX) && defined (HAVE_LIBNCURSES) +#if defined (GNU_LINUX) && defined (HAVE_LIBNCURSES) /* In some versions of ncurses, tputs crashes if we have not called tgetent. So call tgetent. */ diff -r 464d0a0dcf2e -r e669966d496e src/emacs.c --- a/src/emacs.c Tue Dec 11 22:13:11 2001 +0000 +++ b/src/emacs.c Tue Dec 11 22:20:20 2001 +0000 @@ -593,7 +593,7 @@ void __do_global_dtors () {} /* Linux has a bug in its library; avoid an error. */ -#ifndef LINUX +#ifndef GNU_LINUX char * __CTOR_LIST__[2] = { (char *) (-1), 0 }; #endif char * __DTOR_LIST__[2] = { (char *) (-1), 0 }; diff -r 464d0a0dcf2e -r e669966d496e src/fileio.c --- a/src/fileio.c Tue Dec 11 22:13:11 2001 +0000 +++ b/src/fileio.c Tue Dec 11 22:20:20 2001 +0000 @@ -23,7 +23,7 @@ #include -#if defined (USG5) || defined (BSD_SYSTEM) || defined (LINUX) +#if defined (USG5) || defined (BSD_SYSTEM) || defined (GNU_LINUX) #include #endif diff -r 464d0a0dcf2e -r e669966d496e src/mem-limits.h --- a/src/mem-limits.h Tue Dec 11 22:13:11 2001 +0000 +++ b/src/mem-limits.h Tue Dec 11 22:20:20 2001 +0000 @@ -118,7 +118,7 @@ lim_data = -1; /* Use the ulimit call, if we seem to have it. */ -#if !defined (ULIMIT_BREAK_VALUE) || defined (LINUX) +#if !defined (ULIMIT_BREAK_VALUE) || defined (GNU_LINUX) lim_data = ulimit (3, 0); #endif diff -r 464d0a0dcf2e -r e669966d496e src/process.c --- a/src/process.c Tue Dec 11 22:13:11 2001 +0000 +++ b/src/process.c Tue Dec 11 22:20:20 2001 +0000 @@ -4276,7 +4276,7 @@ Otherwise (on systems that have WNOHANG), loop around to use up all the processes that have something to tell us. */ #if (defined WINDOWSNT \ - || (defined USG && !defined LINUX \ + || (defined USG && !defined GNU_LINUX \ && !(defined HPUX && defined WNOHANG))) #if defined (USG) && ! defined (POSIX_SIGNALS) signal (signo, sigchld_handler); diff -r 464d0a0dcf2e -r e669966d496e src/sysdep.c --- a/src/sysdep.c Tue Dec 11 22:13:11 2001 +0000 +++ b/src/sysdep.c Tue Dec 11 22:20:20 2001 +0000 @@ -245,7 +245,7 @@ #else #if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) #else -#if defined (HAVE_TERMIOS_H) && defined (LINUX) +#if defined (HAVE_TERMIOS_H) && defined (GNU_LINUX) #include #endif #endif @@ -476,7 +476,7 @@ break; wait (0); #else /* neither BSD_SYSTEM nor UNIPLUS: random sysV */ -#ifdef POSIX_SIGNALS /* would this work for LINUX as well? */ +#ifdef POSIX_SIGNALS /* would this work for GNU/Linux as well? */ sigblock (sigmask (SIGCHLD)); errno = 0; if (kill (pid, 0) == -1 && errno == ESRCH)