diff options
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r-- | include/asterisk/compat.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 0dd3685d6..a9f032b34 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -52,14 +52,9 @@ #endif #ifdef HAVE_ALLOCA_H -#include <alloca.h> -#elif defined(__GNUC__) -#define alloca __builtin_alloca -#elif defined(_AIX) -#define alloca __alloca -#elif defined(_MSC_VER) -#include <malloc.h> -#define alloca _alloca +#include <alloca.h> /* not necessarily present - could be in stdlib */ +#elif defined(HAVE_ALLOCA) +#include <malloc.h> /* see if it is here... */ #endif #include <stdio.h> /* this is always present */ |