1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/gmake381/files/patch-glob.c
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

20 lines
511 B
C

--- glob/glob.c.orig Wed Sep 25 03:11:43 2002
+++ glob/glob.c Wed Sep 25 03:15:32 2002
@@ -215,13 +215,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. */