diff options
| author | Roland McGrath | 1995-06-12 17:21:07 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-06-12 17:21:07 +0000 |
| commit | 240049aafcd3d21d15ab875cb08b0d6f07118363 (patch) | |
| tree | 39d7134739efd5d8a72a2fcacb1e9d75a4e1e582 /src | |
| parent | 8a442858750469601af3d392e7f2cf6349ef522c (diff) | |
| download | emacs-240049aafcd3d21d15ab875cb08b0d6f07118363.tar.gz emacs-240049aafcd3d21d15ab875cb08b0d6f07118363.zip | |
[_LIBC] (start_of_data): Define to &__data_start for GNU libc.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem-limits.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h index c18ee003659..4ea8a18c7ac 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Includes for memory limit warnings. | 1 | /* Includes for memory limit warnings. |
| 2 | Copyright (C) 1990, 1993, 1994 Free Software Foundation, Inc. | 2 | Copyright (C) 1990, 1993, 1994, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -29,6 +29,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 29 | #include <sys/resource.h> | 29 | #include <sys/resource.h> |
| 30 | #define BSD4_2 /* Tell code below to use getrlimit. */ | 30 | #define BSD4_2 /* Tell code below to use getrlimit. */ |
| 31 | 31 | ||
| 32 | extern int __data_start; | ||
| 33 | #define start_of_data() &__data_start | ||
| 34 | |||
| 32 | #else | 35 | #else |
| 33 | 36 | ||
| 34 | #if defined (__osf__) && (defined (__mips) || defined (mips) || defined(__alpha)) | 37 | #if defined (__osf__) && (defined (__mips) || defined (mips) || defined(__alpha)) |
| @@ -53,8 +56,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 53 | #include <sys/resource.h> | 56 | #include <sys/resource.h> |
| 54 | #endif /* BSD4_2 */ | 57 | #endif /* BSD4_2 */ |
| 55 | 58 | ||
| 56 | #endif /* _LIBC */ | ||
| 57 | |||
| 58 | #ifdef emacs | 59 | #ifdef emacs |
| 59 | /* The important properties of this type are that 1) it's a pointer, and | 60 | /* The important properties of this type are that 1) it's a pointer, and |
| 60 | 2) arithmetic on it should work as if the size of the object pointed | 61 | 2) arithmetic on it should work as if the size of the object pointed |
| @@ -92,7 +93,8 @@ extern char etext; | |||
| 92 | #define start_of_data() &etext | 93 | #define start_of_data() &etext |
| 93 | #endif /* Not emacs */ | 94 | #endif /* Not emacs */ |
| 94 | 95 | ||
| 95 | 96 | #endif /* _LIBC */ | |
| 97 | |||
| 96 | 98 | ||
| 97 | /* start of data space; can be changed by calling malloc_init */ | 99 | /* start of data space; can be changed by calling malloc_init */ |
| 98 | static POINTER data_space_start; | 100 | static POINTER data_space_start; |