diff options
author | netchild <netchild@FreeBSD.org> | 2002-10-25 14:31:18 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2002-10-25 14:31:18 +0000 |
commit | 49da343fe9fc7259c5191a1a0afcf5c67f205dcb (patch) | |
tree | 0d1d4fd653225b22f3aff3a70d6a5b1b69770e0c | |
parent | 891de3b9a3905248253202e0f1f65191c8503d3b (diff) | |
download | FreeBSD-ports-49da343fe9fc7259c5191a1a0afcf5c67f205dcb.zip FreeBSD-ports-49da343fe9fc7259c5191a1a0afcf5c67f205dcb.tar.gz |
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
-rw-r--r-- | devel/gmake/files/patch-glob.c | 19 | ||||
-rw-r--r-- | devel/gmake/files/patch-make.h | 12 | ||||
-rw-r--r-- | devel/gmake381/files/patch-glob.c | 19 | ||||
-rw-r--r-- | devel/gmake381/files/patch-make.h | 12 |
4 files changed, 62 insertions, 0 deletions
diff --git a/devel/gmake/files/patch-glob.c b/devel/gmake/files/patch-glob.c new file mode 100644 index 0000000..3c67554 --- /dev/null +++ b/devel/gmake/files/patch-glob.c @@ -0,0 +1,19 @@ +--- 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. */ + + diff --git a/devel/gmake/files/patch-make.h b/devel/gmake/files/patch-make.h new file mode 100644 index 0000000..28a63d2 --- /dev/null +++ b/devel/gmake/files/patch-make.h @@ -0,0 +1,12 @@ +--- 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 + diff --git a/devel/gmake381/files/patch-glob.c b/devel/gmake381/files/patch-glob.c new file mode 100644 index 0000000..3c67554 --- /dev/null +++ b/devel/gmake381/files/patch-glob.c @@ -0,0 +1,19 @@ +--- 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. */ + + diff --git a/devel/gmake381/files/patch-make.h b/devel/gmake381/files/patch-make.h new file mode 100644 index 0000000..28a63d2 --- /dev/null +++ b/devel/gmake381/files/patch-make.h @@ -0,0 +1,12 @@ +--- 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 + |