diff --git a/Source/GSFormat.m b/Source/GSFormat.m index b66c4c2bd..78026af31 100644 --- a/Source/GSFormat.m +++ b/Source/GSFormat.m @@ -50,6 +50,9 @@ # endif #endif +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/GSString.m b/Source/GSString.m index 34ce9779c..354c1e96c 100644 --- a/Source/GSString.m +++ b/Source/GSString.m @@ -48,6 +48,9 @@ #import "GSPrivate.h" +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/NSConnection.m b/Source/NSConnection.m index c210ef7cd..4821f15ed 100644 --- a/Source/NSConnection.m +++ b/Source/NSConnection.m @@ -68,6 +68,9 @@ #define EXPOSE_NSDistantObject_IVARS 1 +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/NSException.m b/Source/NSException.m index df7e24798..a51f5d146 100644 --- a/Source/NSException.m +++ b/Source/NSException.m @@ -40,6 +40,9 @@ #import "Foundation/NSValue.h" #import "GNUstepBase/NSString+GNUstepBase.h" +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/NSMethodSignature.m b/Source/NSMethodSignature.m index 51fea87e9..6bcdf7cf5 100644 --- a/Source/NSMethodSignature.m +++ b/Source/NSMethodSignature.m @@ -36,6 +36,9 @@ #import "GSInvocation.h" +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/NSString.m b/Source/NSString.m index 6d59da438..b73db8f37 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -88,6 +88,9 @@ #include #include +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/callframe.m b/Source/callframe.m index b59b33140..0e37a25ba 100644 --- a/Source/callframe.m +++ b/Source/callframe.m @@ -25,6 +25,9 @@ #import "common.h" +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif diff --git a/Source/cifframe.m b/Source/cifframe.m index 23c0b441a..3a35e55d5 100644 --- a/Source/cifframe.m +++ b/Source/cifframe.m @@ -25,6 +25,9 @@ #import "common.h" +#ifdef HAVE_MALLOC_H +#include +#endif #ifdef HAVE_ALLOCA_H #include #endif