Index: glob/glob.c --- glob/glob.c.orig 2013-10-06 01:12:18.000000000 +0200 +++ glob/glob.c 2014-10-04 18:45:46.904422293 +0200 @@ -217,13 +217,13 @@ # ifdef HAVE_ALLOCA_H # include # else /* Not HAVE_ALLOCA_H. */ -# ifndef _AIX +# if !defined (_AIX) && !defined (__FreeBSD__) # ifdef WINDOWS32 # include # else extern char *alloca (); # endif /* WINDOWS32 */ -# endif /* Not _AIX. */ +# endif /* Not _AIX && not __FreeBSD__. */ # endif /* sparc or HAVE_ALLOCA_H. */ # endif /* GCC. */ Index: makeint.h --- makeint.h.orig 2013-10-09 06:22:40.000000000 +0200 +++ makeint.h 2014-10-04 18:46:55.144449922 +0200 @@ -73,7 +73,7 @@ #include #include -#ifdef HAVE_SYS_TIMEB_H +#if defined(HAVE_SYS_TIMEB_H) && !defined(__FreeBSD__) /* SCO 3.2 "devsys 4.2" has a prototype for 'ftime' in that bombs unless has been included first. */ # include