]> git.eshelyaron.com Git - emacs.git/commit
Clean up the fix for unexec build on GNU/Linux
authorEli Zaretskii <eliz@gnu.org>
Thu, 20 May 2021 08:26:00 +0000 (11:26 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 20 May 2021 08:26:00 +0000 (11:26 +0300)
commitb2eed2ae568b53ac910f4a3b8458eedf8d8c67ec
treebff25c6d02605018e916b904ef77454812ca0f64
parentd68f2b8681f8eeb6bbf1b4476a88f00b2962179e
Clean up the fix for unexec build on GNU/Linux

* src/conf_post.h [HYBRID_MALLOC || DARWIN_OS && HAVE_UNEXEC]:
Include <stdlib.h> here, before redirecting 'malloc' and friends
to their hybrid_* and unexec_* equivalents.  #undef malloc and
friends before redefining.  Provide prototypes for the
replacements.  Suggested by Paul Eggert <eggert@cs.ucla.edu>.
* src/gmalloc.c [HYBRID_MALLOC]: Remove declarations of 'malloc'
and friends, as they are now redundant: we include <stdlib.h> in
conf_post.h before redefining 'malloc' etc., and that provides
prototypes from system headers.

* configure.ac (HYBRID_MALLOC): Remove kludge to avoid replacement
of 'free' by Gnulib.  (Bug#36649)
configure.ac
src/conf_post.h
src/gmalloc.c