aboutsummaryrefslogtreecommitdiffstats
path: root/src/m
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-02 00:03:17 +0000
committerRichard M. Stallman1997-06-02 00:03:17 +0000
commit6c73d3466fdf6bc7877ca3c5c51e6a3a76e72f9e (patch)
tree569db0704129a09a48ee109d0b7af6b5d1b815b0 /src/m
parent39def718d1d4d40801b208a4ee96d57cb80477c6 (diff)
downloademacs-6c73d3466fdf6bc7877ca3c5c51e6a3a76e72f9e.tar.gz
emacs-6c73d3466fdf6bc7877ca3c5c51e6a3a76e72f9e.zip
[__NetBSD__]: Include stdlib.h, not alloca.h.
(ORDINARY_LINK): Defined (if __NetBSD__).
Diffstat (limited to 'src/m')
-rw-r--r--src/m/alpha.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/m/alpha.h b/src/m/alpha.h
index 0833299160b..4b6b26bd96a 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -153,6 +153,10 @@ NOTE-END
153# endif 153# endif
154#endif 154#endif
155 155
156#ifdef __NetBSD__
157#define ORDINARY_LINK
158#endif
159
156#ifdef __ELF__ 160#ifdef __ELF__
157#undef UNEXEC 161#undef UNEXEC
158#define UNEXEC unexelf.o 162#define UNEXEC unexelf.o
@@ -235,7 +239,11 @@ NOTE-END
235 239
236#ifndef NOT_C_CODE 240#ifndef NOT_C_CODE
237/* We need these because pointers are larger than the default ints. */ 241/* We need these because pointers are larger than the default ints. */
242#ifndef __NetBSD__
238#include <alloca.h> 243#include <alloca.h>
244#else
245#include <stdlib.h>
246#endif
239 247
240/* Hack alert! For reasons unknown to mankind the string.h file insists 248/* Hack alert! For reasons unknown to mankind the string.h file insists
241 on defining bcopy etc. as taking char pointers as arguments. With 249 on defining bcopy etc. as taking char pointers as arguments. With