all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Compilation error caused by SPARE_MEMORY
@ 2011-06-05 21:10 Ben Key
  2011-06-05 21:54 ` Glenn Morris
  2011-06-06  2:50 ` Eli Zaretskii
  0 siblings, 2 replies; 7+ messages in thread
From: Ben Key @ 2011-06-05 21:10 UTC (permalink / raw)
  To: Emacs Development

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

Hello,

I am seeing a compilation error in alloc.c on line 3287 on Mac OS X due to
SPARE_MEMORY being undeclared.

Starting on line 193 of alloc.c is the following code block that attempts to
define SPARE_MEMORY.

#ifndef SYSTEM_MALLOC
/* Amount of spare memory to keep in large reserve block.  */

#define SPARE_MEMORY (1 << 14)
#endif

The problem is that SYSTEM_MALLOC is defined on Mac OS X but SPARE_MEMORY is
not defined in any of the system header files (at least running 'grep -RnH
SPARE_MEMORY *' in the /usr/include/ directory yields no results).  I
believe that the above code block should be changed to the following but I
am not certain how this change will affect other platforms.

#ifndef SPARE_MEMORY
/* Amount of spare memory to keep in large reserve block.  */

#define SPARE_MEMORY (1 << 14)
#endif

Note that SPARE_MEMORY does not appear to be defined on Windows either.  At
least I could not find it in any of the MinGW header files.

How is SPARE_MEMORY defined on systems that do define it?  Is the above
change the correct one?  It fixes the problem on Mac OS X but I do not want
to make a change that will cause problems for other operating systems.

[-- Attachment #2: Type: text/html, Size: 1512 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-06 16:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 21:10 Compilation error caused by SPARE_MEMORY Ben Key
2011-06-05 21:54 ` Glenn Morris
2011-06-06  4:59   ` bug#8800: " Paul Eggert
2011-06-06  4:59   ` Paul Eggert
2011-06-06 12:02     ` Donald Ephraim Curtis
2011-06-06 16:42       ` bug#8800: " Paul Eggert
2011-06-06  2:50 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.