aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index dd1153e2054..a829fdc35a8 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -35,15 +35,22 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
35 35
36#include "getopt.h" 36#include "getopt.h"
37 37
38#ifdef __GNUC__ 38/* AIX requires this to be the first thing in the file. */
39#define alloca __builtin_alloca 39#ifdef __GNUC__
40#else 40#ifndef alloca
41#ifdef sparc 41#define alloca __builtin_alloca
42#include <alloca.h>
43#else
44extern char *alloca ();
45#endif
46#endif 42#endif
43#else /* not __GNUC__ */
44#if HAVE_ALLOCA_H
45#include <alloca.h>
46#else /* not HAVE_ALLOCA_H */
47#ifdef _AIX
48 #pragma alloca
49#else /* not _AIX */
50char *alloca ();
51#endif /* not _AIX */
52#endif /* not HAVE_ALLOCA_H */
53#endif /* not __GNUC__ */
47 54
48extern char *malloc (), *realloc (); 55extern char *malloc (), *realloc ();
49extern char *getenv (); 56extern char *getenv ();