aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/gnu.h
diff options
context:
space:
mode:
authorGlenn Morris2010-05-17 19:44:07 -0700
committerGlenn Morris2010-05-17 19:44:07 -0700
commit40dc6bf44ec6e258dabd6aa3c674f8e65ded64bb (patch)
tree2fd6c610f4a8a842abc4816dbdd87ff35949e959 /src/s/gnu.h
parentbe4ff9dad8bf43251f78f58a9ce86cf8bb153300 (diff)
downloademacs-40dc6bf44ec6e258dabd6aa3c674f8e65ded64bb.tar.gz
emacs-40dc6bf44ec6e258dabd6aa3c674f8e65ded64bb.zip
Set rallocobj with configure, not cpp.
* configure.in (REL_ALLOC): Unset on gnu, gnu-linux if DOUG_LEA_MALLOC. (RALLOC_OBJ): New output variable. * config.bat (RALLOC_OBJ): Edit to empty if sys_malloc. * src/Makefile.in (RALLOC_OBJ): New, set by configure. (rallocobj): Replace with the previous variable. (otherobj): Use $RALLOC_OBJ. * src/s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]: * src/s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure. * msdos/sed1v2.inp (RALLOC_OBJ): Edit to ralloc.o.
Diffstat (limited to 'src/s/gnu.h')
-rw-r--r--src/s/gnu.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/s/gnu.h b/src/s/gnu.h
index 9f6fe52a5de..cb4c4a9d807 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -1,6 +1,7 @@
1/* Definitions file for GNU Emacs running on the GNU Hurd. 1/* Definitions file for GNU Emacs running on the GNU Hurd.
2 Copyright (C) 1994, 1995, 1996, 2001, 2002, 2003, 2004, 2005, 2006, 2
3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3Copyright (C) 1994, 1995, 1996, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 2008, 2009, 2010 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -28,11 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28 29
29#define SIGNALS_VIA_CHARACTERS 30#define SIGNALS_VIA_CHARACTERS
30 31
31/* Use mmap directly for allocating larger buffers. */
32#ifdef DOUG_LEA_MALLOC
33#undef REL_ALLOC
34#endif
35
36/* GNU needs its own crt0, and libc defines data_start. */ 32/* GNU needs its own crt0, and libc defines data_start. */
37#define ORDINARY_LINK 33#define ORDINARY_LINK
38#define DATA_START ({ extern int data_start; (char *) &data_start; }) 34#define DATA_START ({ extern int data_start; (char *) &data_start; })