blob: 47dfb791203b68fb61726f239eeb193e35a5ade6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
diff -rBbc src/m/alpha.h src/m/alpha.h
*** src/m/alpha.h Sat Aug 10 07:03:36 1996
--- src/m/alpha.h Sat Dec 29 03:49:32 2001
***************
*** 234,240 ****
--- 234,244 ----
#ifndef NOT_C_CODE
/* We need these because pointers are larger than the default ints. */
+ #if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
#include <alloca.h>
+ #else
+ #include <stdlib.h>
+ #endif
/* Hack alert! For reasons unknown to mankind the string.h file insists
on defining bcopy etc. as taking char pointers as arguments. With
***************
*** 299,308 ****
termio and struct termios are mutually incompatible. */
#define NO_TERMIO
! #ifdef LINUX
# define TEXT_END ({ extern int _etext; &_etext; })
# ifndef __ELF__
# define COFF
# define DATA_END ({ extern int _EDATA; &_EDATA; })
# endif /* notdef __ELF__ */
#endif
--- 303,320 ----
termio and struct termios are mutually incompatible. */
#define NO_TERMIO
! #if defined(LINUX) || \
! defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__)
# define TEXT_END ({ extern int _etext; &_etext; })
# ifndef __ELF__
# define COFF
# define DATA_END ({ extern int _EDATA; &_EDATA; })
# endif /* notdef __ELF__ */
#endif
+
+ #if (defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__)) \
+ && defined (__ELF__)
+ #define HAVE_TEXT_START
+ #endif
+
+
|