* configure.in: Don't create a faked malloc.h.

* gtkedit/edit.h: Don't assume that malloc.h always exists.
* src/mad.h: Likewise.
This commit is contained in:
Pavel Roskin 2001-01-13 08:09:14 +00:00
parent c5404ae9cb
commit 7bee992ba2
4 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,9 @@
2001-01-13 Pavel Roskin <proski@gnu.org>
* configure.in: Don't create a faked malloc.h.
* gtkedit/edit.h: Don't assume that malloc.h always exists.
* src/mad.h: Likewise.
* configure.in: Simplified handling of cons.saver.
* src/Makefile.in: Likewise. Don't install cons.saver setuid.
* mc.spec.in: Remove a workaround for the above.

View File

@ -78,10 +78,6 @@ AC_PROG_INSTALL
AC_CHECK_HEADERS(unistd.h string.h memory.h crypt.h grp.h limits.h malloc.h)
AC_CHECK_HEADERS(stdlib.h termios.h utime.h fcntl.h sys/statfs.h)
if test x$ac_cv_header_malloc_h = xno; then
echo '/* NeXTStep malloc.h stub */' > $srcdir/malloc.h
fi
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT
AC_SHORT_D_NAME_LEN

View File

@ -45,7 +45,9 @@
# include <fcntl.h>
# include <stdlib.h>
# include <malloc.h>
# ifdef HAVE_MALLOC_H
# include <malloc.h>
# endif
#else /* ! MIDNIGHT */

View File

@ -3,7 +3,9 @@
/* To prevent molesting these files with the malloc/calloc/free macros. */
#include <stdlib.h>
#include <malloc.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
#ifdef HAVE_MAD
# define INLINE