Commit de9239cd authored by Niels Möller's avatar Niels Möller
Browse files

(LSH_FUNC_ALLOCA): Check for malloc.h, and include

it if it exists. Needed for alloca on windows.

Rev: ChangeLog:1.768
Rev: acinclude.m4:1.19
parent c1c204ce
2004-03-01 Niels Mller <niels@s3.kth.se>
* acinclude.m4 (LSH_FUNC_ALLOCA): Check for malloc.h, and include
it if it exists. Needed for alloca on windows.
2004-02-29 Niels Mller <nisse@lysator.liu.se>
* src/socks.c (do_read_socks): Bugfix, update self->pos.
......
......@@ -344,6 +344,7 @@ fi
# Check for alloca, and include the standard blurb in config.h
AC_DEFUN([LSH_FUNC_ALLOCA],
[AC_FUNC_ALLOCA
AC_CHECK_HEADERS([malloc.h])
AH_BOTTOM(
[/* AIX requires this to be the first thing in the file. */
#ifndef __GNUC__
......@@ -363,6 +364,10 @@ char *alloca ();
# include <alloca.h>
# endif
#endif
/* Needed for alloca on windows */
#if HAVE_MALLOC_H
# include <malloc.h>
#endif
])])
AC_DEFUN([LSH_FUNC_STRERROR],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment