From 92b34071447b4c4106f27e34c28a73ac7e44effb Mon Sep 17 00:00:00 2001 From: CaS Date: Mon, 21 Feb 2005 14:33:43 +0000 Subject: [PATCH] Include malloc.h ... needed on some systems for declaration of alloca() git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20770 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 9 +++++++++ Source/GSFormat.m | 3 +++ Source/NSConnection.m | 4 ++++ Source/callframe.m | 4 ++++ Source/cifframe.m | 4 ++++ Source/mframe/mframe.head | 4 ++++ 6 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index ce3ae5b64..d7912ae18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-02-21 14:30 Richard Frith-Macdonald + + * Source/GSFormat.m: + * Source/NSConnection.m: + * Source/callframe.m: + * Source/cifframe.m: + Include malloc.h for systems where it is needed for alloca() + +M Source/mframe/mframe.head 2005-02-21 14:10 Stefan Urbanek * Source/NSAttributedString.m: Fix loop decoding from archive. diff --git a/Source/GSFormat.m b/Source/GSFormat.m index 1f6964372..b081403fa 100644 --- a/Source/GSFormat.m +++ b/Source/GSFormat.m @@ -90,6 +90,9 @@ typedef gsu32 wint_t; #ifdef HAVE_SYS_INTTYPES_H #include #endif +#ifdef HAVE_MALLOC_H +#include +#endif #ifndef HAVE_UINTMAX_T typedef unsigned long long uintmax_t; #endif diff --git a/Source/NSConnection.m b/Source/NSConnection.m index 16f6e2d52..9769c260d 100644 --- a/Source/NSConnection.m +++ b/Source/NSConnection.m @@ -78,6 +78,10 @@ #include "Foundation/NSDebug.h" #include "GSInvocation.h" +#ifdef HAVE_MALLOC_H +#include +#endif + extern NSRunLoop *GSRunLoopForThread(NSThread*); #define F_LOCK(X) {NSDebugFLLog(@"GSConnection",@"Lock %@",X);[X lock];} diff --git a/Source/callframe.m b/Source/callframe.m index 554c6c05f..2b539015c 100644 --- a/Source/callframe.m +++ b/Source/callframe.m @@ -29,6 +29,10 @@ #include "Foundation/NSData.h" #include "GSInvocation.h" +#ifdef HAVE_MALLOC_H +#include +#endif + #if defined(ALPHA) || (defined(MIPS) && (_MIPS_SIM == _ABIN32)) typedef long long smallret_t; #else diff --git a/Source/cifframe.m b/Source/cifframe.m index 962af5626..431a0e16c 100644 --- a/Source/cifframe.m +++ b/Source/cifframe.m @@ -29,6 +29,10 @@ #include "Foundation/NSData.h" #include "GSInvocation.h" +#ifdef HAVE_MALLOC_H +#include +#endif + #if defined(ALPHA) || (defined(MIPS) && (_MIPS_SIM == _ABIN32)) typedef long long smallret_t; #else diff --git a/Source/mframe/mframe.head b/Source/mframe/mframe.head index 0c181f788..5ac3ef4ed 100644 --- a/Source/mframe/mframe.head +++ b/Source/mframe/mframe.head @@ -26,6 +26,10 @@ #include "GNUstepBase/preface.h" +#ifdef HAVE_MALLOC_H +#include +#endif + #include "GNUstepBase/DistributedObjects.h" /* For NSArgumentInfo we include NSMethodSignature.h */