Index: lib/glob.c
--- lib/glob.c.orig	2020-01-03 08:11:27.000000000 +0100
+++ lib/glob.c	2020-01-22 17:33:10.687801000 +0100
@@ -217,13 +217,13 @@
 #  ifdef HAVE_ALLOCA_H
 #   include <alloca.h>
 #  else	/* Not HAVE_ALLOCA_H.  */
-#   ifndef _AIX
+#   if !defined (_AIX) && !defined (__FreeBSD__)
 #    ifdef WINDOWS32
 #     include <malloc.h>
 #    else
 extern char *alloca ();
 #    endif /* WINDOWS32 */
-#   endif /* Not _AIX.  */
+#   endif /* Not _AIX && not __FreeBSD__.  */
 #  endif /* sparc or HAVE_ALLOCA_H.  */
 # endif	/* GCC.  */
 #endif
