aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/gnu-linux.h
diff options
context:
space:
mode:
authorKarl Heuer1995-05-16 01:33:12 +0000
committerKarl Heuer1995-05-16 01:33:12 +0000
commit4dee6d0d08ae33201aa74fc5fb39ca556a0ab7e6 (patch)
tree3c1a27bc97d44843539526377ec4f5dfab163eee /src/s/gnu-linux.h
parent4e9ffb56abc9f3793c463c599fdf11d15c4edbf3 (diff)
downloademacs-4dee6d0d08ae33201aa74fc5fb39ca556a0ab7e6.tar.gz
emacs-4dee6d0d08ae33201aa74fc5fb39ca556a0ab7e6.zip
Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
[__ELF__] (START_FILES, LIB_STANDARD, LIB_GCC, UNEXEC): Define these.
Diffstat (limited to 'src/s/gnu-linux.h')
-rw-r--r--src/s/gnu-linux.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 3c251fb3336..9ed90ee3a4c 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -1,4 +1,4 @@
1/* This file is the configuration file for the Linux operating system. 1/* This file is the configuration file for the GNU/Linux operating system.
2 Copyright (C) 1985, 1986, 1992, 1994 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1992, 1994 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
@@ -144,7 +144,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
144 144
145#ifdef emacs 145#ifdef emacs
146#include <stdio.h> /* Get the definition of _IO_STDIO_H. */ 146#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
147#ifdef _IO_STDIO_H 147#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
148/* new C libio names */ 148/* new C libio names */
149#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ 149#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
150 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) 150 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
@@ -155,8 +155,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
155#endif /* !_IO_STDIO_H */ 155#endif /* !_IO_STDIO_H */
156#endif /* emacs */ 156#endif /* emacs */
157 157
158#ifndef __ELF__
158/* Linux has crt0.o in a non-standard place */ 159/* Linux has crt0.o in a non-standard place */
159#define START_FILES pre-crt0.o /usr/lib/crt0.o 160#define START_FILES pre-crt0.o /usr/lib/crt0.o
161#else
162#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
163#endif
160 164
161/* As of version 1.1.51, Linux does not actually implement SIGIO. */ 165/* As of version 1.1.51, Linux does not actually implement SIGIO. */
162/* Here we assume that signal.h is already included. */ 166/* Here we assume that signal.h is already included. */
@@ -186,7 +190,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
186/* Best not to include -lg, unless it is last on the command line */ 190/* Best not to include -lg, unless it is last on the command line */
187#define LIBS_DEBUG 191#define LIBS_DEBUG
188#define LIBS_TERMCAP -ltermcap -lcurses /* save some space with shared libs*/ 192#define LIBS_TERMCAP -ltermcap -lcurses /* save some space with shared libs*/
193#ifndef __ELF__
189#define LIB_STANDARD -lc /* avoid -lPW */ 194#define LIB_STANDARD -lc /* avoid -lPW */
195#else
196#define LIB_GCC
197#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
198#endif
190 199
191/* Don't use -g in test compiles in configure. 200/* Don't use -g in test compiles in configure.
192 This is so we will use the same shared libs for that linking 201 This is so we will use the same shared libs for that linking
@@ -215,6 +224,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
215 224
216#define HAVE_SYSVIPC 225#define HAVE_SYSVIPC
217 226
227#ifdef __ELF__
228#define UNEXEC unexelf.o
229#endif
230
218#ifdef LINUX_QMAGIC 231#ifdef LINUX_QMAGIC
219 232
220#define HAVE_TEXT_START 233#define HAVE_TEXT_START