mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
Change how we handle alloca to conform with how it is suggested in the autoconf manual for AC_FUNC_ALLOCA. FreeBSD 6 now builds again and no other platforms should be broken by this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -52,9 +52,14 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ALLOCA_H
|
#ifdef HAVE_ALLOCA_H
|
||||||
#include <alloca.h> /* not necessarily present - could be in stdlib */
|
#include <alloca.h>
|
||||||
#elif defined(HAVE_ALLOCA)
|
#elif defined(__GNUC__)
|
||||||
#include <malloc.h> /* see if it is here... */
|
#define alloca __builtin_alloca
|
||||||
|
#elif defined(_AIX)
|
||||||
|
#define alloca __alloca
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#include <malloc.h>
|
||||||
|
#define alloca _alloca
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h> /* this is always present */
|
#include <stdio.h> /* this is always present */
|
||||||
|
|||||||
Reference in New Issue
Block a user