]> git.eshelyaron.com Git - emacs.git/commit
Port to FreeBSD 11 AMD
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Nov 2016 17:48:53 +0000 (09:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Nov 2016 17:49:27 +0000 (09:49 -0800)
commit3b5e6774ed9743fb726ac8c15341eaa09375cfbf
tree08e5246f9f6311936689479346be05b801db4cf0
parent86baa208f84597068b3d55420eae0100a59e44b7
Port to FreeBSD 11 AMD

Problem reported by Ashish Shukla (Bug#24892).  I tested
this on FreeBSD 11 x86-64 with HAVE_SBRK manually undefined.
* configure.ac (system_malloc): Set to 'yes' if there is no sbrk.
(sbrk): Check whether it exists.
* src/alloc.c (my_heap_start) [!GNU_LINUX]:
Do not define, since this function is now used only on GNU/Linux,
and sbrk might not exist on other platforms.
(malloc_initialize_hook) [!GNU_LINUX]:
Do not call my_heap_start, since its side effect will never be used.
(Fmemory_limit) [!HAVE_SBRK]: Do not call sbrk.
* src/unexelf.c (unexec) [!HAVE_SBRK]: Assume that nothing like
sbrk exists.
configure.ac
src/alloc.c
src/unexelf.c