aboutsummaryrefslogtreecommitdiffstats
path: root/lib/malloc/alloca.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-11-13 17:56:06 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:54 +0000
commitf73dda092b33638d2d5e9c35375f687a607b5403 (patch)
treef21584e70a444d6a1ecba0fb5e2cf79e8cce91db /lib/malloc/alloca.c
parent28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff)
downloadandroid_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz
android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.bz2
android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.zip
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'lib/malloc/alloca.c')
-rw-r--r--lib/malloc/alloca.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/malloc/alloca.c b/lib/malloc/alloca.c
index 567ea1b..26319c2 100644
--- a/lib/malloc/alloca.c
+++ b/lib/malloc/alloca.c
@@ -28,6 +28,8 @@
/* If compiling with GCC 2, this file's not needed. */
#if !defined (__GNUC__) || __GNUC__ < 2
+#include <bashtypes.h> /* for size_t */
+
/* If alloca is defined somewhere, this file is not needed. */
#ifndef alloca
@@ -155,7 +157,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */
pointer
alloca (size)
- unsigned size;
+ size_t size;
{
auto char probe; /* Probes stack depth: */
register char *depth = ADDRESS_FUNCTION (probe);