freebsd-ports/devel/gmake/files/patch-make.h
Alexander Leidinger 3266ee3cdb We already have a prototype for alloca() in stdlib.h, no need to
have it here too.

This lets us compile gmake with stricter compilers.

Submitted by:	marius@alchemy.franken.de
2002-10-25 14:31:18 +00:00

12 lines
350 B
C

--- make.h.orig Wed Sep 11 18:55:44 2002
+++ make.h Mon Oct 21 22:05:11 2002
@@ -33,7 +33,7 @@
# ifdef _AIX
#pragma alloca
# else
-# ifndef alloca /* predefined by HP cc +Olibcalls */
+# if !defined (alloca) && !defined (__FreeBSD__) /* predefined by HP cc +Olibcalls, part of stdlib.h on FreeBSD */
char *alloca ();
# endif
# endif