diff --git a/Source/GSString.m b/Source/GSString.m index fa5bfa520..fb281a1b8 100644 --- a/Source/GSString.m +++ b/Source/GSString.m @@ -48,6 +48,10 @@ #import "GSPrivate.h" +#ifdef HAVE_ALLOCA_H +#include +#endif + /* memcpy(), strlen(), strcmp() are gcc builtin's */ #import "GNUstepBase/Unicode.h" diff --git a/Source/NSException.m b/Source/NSException.m index 1b4a4eb86..c2b066b1c 100644 --- a/Source/NSException.m +++ b/Source/NSException.m @@ -40,6 +40,10 @@ #import "Foundation/NSValue.h" #import "GNUstepBase/NSString+GNUstepBase.h" +#ifdef HAVE_ALLOCA_H +#include +#endif + #include #ifdef HAVE_BACKTRACE diff --git a/Source/NSMethodSignature.m b/Source/NSMethodSignature.m index 23f274eb4..1e5d4de17 100644 --- a/Source/NSMethodSignature.m +++ b/Source/NSMethodSignature.m @@ -36,6 +36,10 @@ #import "GSInvocation.h" +#ifdef HAVE_ALLOCA_H +#include +#endif + /* The objc runtime library objc_skip_offset() is buggy on some compiler * versions, so we use our own alternative implementation. */ diff --git a/Source/NSString.m b/Source/NSString.m index 88e5071bb..9a22329e9 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -88,6 +88,10 @@ #include #include +#ifdef HAVE_ALLOCA_H +#include +#endif + #import "GNUstepBase/Unicode.h" #import "GSPrivate.h"