Here's a patch that i needed to compile sed-4.1.5 on gentoo/fbsd
Created attachment 86861 [details, diff] sed-4.1.5-freebsd-alloca.h.patch
Committed already :P