Subject: HELP - Compiling a program that requires alloca.h
To: netbsd-help <netbsd-help@NetBSD.ORG>
From: John Maier <>
List: port-i386
Date: 05/19/1995 03:11:04
I am trying to compile xfm-1.3.2 and all was okay till I couldn't find 
alloca.h.  I notice that Linux was mentioned as a platform on with it has 
been built, so I got a copy of alloca.h and features.h (required by 
alloca.h) and tried my luck.  this time I get...

parse error before `_alloca' (this is the first extern statement)
parse error before `alloca' (this is the second exterm statement)

this is the include file (not very big)

#ifndef   _ALLOCA_H
#define   _ALLOCA_H 1
#include <features.h>

#define   __need_size_t
#include <stddef.h>


/* Remove any previous definitions.  */
#undef    __alloca
#undef    alloca
/* Allocate a block that will be freed when the calling function exits.  */
extern __ptr_t __alloca __P ((size_t __size));

/* `alloca' is a built-in function for gcc 2.x. */
#if defined(__STDC__) || __GNUC__ < 2
extern __ptr_t alloca __P ((size_t __size));

#ifdef    __GNUC__
#define   __alloca(size) __builtin_alloca(size)
#endif /* GCC.  */

#define   alloca(size)   __alloca(size)

any ideas?
*       John A. Maier          * Research Assistant For Datastorm    *
* E-mail: * Technologies Inc. (Procomm Plus)    *
*                              * (314) 443-3283                      *


#endif /* alloca.h */