michael@13: Index: glob/glob.c michael@428: --- glob/glob.c.orig 2009-09-28 08:46:03.000000000 +0200 michael@428: +++ glob/glob.c 2010-07-29 14:25:40.000000000 +0200 michael@250: @@ -217,13 +217,13 @@ michael@13: # ifdef HAVE_ALLOCA_H michael@13: # include michael@13: # else /* Not HAVE_ALLOCA_H. */ michael@13: -# ifndef _AIX michael@13: +# if !defined (_AIX) && !defined (__FreeBSD__) michael@13: # ifdef WINDOWS32 michael@13: # include michael@13: # else michael@13: extern char *alloca (); michael@13: # endif /* WINDOWS32 */ michael@13: -# endif /* Not _AIX. */ michael@13: +# endif /* Not _AIX && not __FreeBSD__. */ michael@13: # endif /* sparc or HAVE_ALLOCA_H. */ michael@13: # endif /* GCC. */ michael@13: michael@13: Index: make.h michael@428: --- make.h.orig 2010-07-20 15:12:06.000000000 +0200 michael@428: +++ make.h 2010-07-29 14:27:20.000000000 +0200 michael@250: @@ -36,7 +36,7 @@ michael@13: #pragma alloca michael@250: # else michael@250: # if !defined(__GNUC__) && !defined(WINDOWS32) michael@13: -# ifndef alloca /* predefined by HP cc +Olibcalls */ michael@428: +# if !defined(alloca) && !defined(__FreeBSD__) /* predefined by HP cc +Olibcalls, part of stdlib.h on FreeBSD */ michael@13: char *alloca (); michael@13: # endif michael@13: # endif