summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2004-04-05 03:53:43 +0000
committerAron Griffis <agriffis@gentoo.org>2004-04-05 03:53:43 +0000
commitcf9e10fbe09c6c90583d93e8f974e3e86d2d6d40 (patch)
tree9d230aed331afa5e15b3839c405eb8920123b4ac /dev-util/byacc/files
parentremoved incorrect S (bug #46788); use sed -i; IUSE; error messages; tidy (diff)
downloadhistorical-cf9e10fbe09c6c90583d93e8f974e3e86d2d6d40.tar.gz
historical-cf9e10fbe09c6c90583d93e8f974e3e86d2d6d40.tar.bz2
historical-cf9e10fbe09c6c90583d93e8f974e3e86d2d6d40.zip
Add patch from Jaime Alvaro Moreno in bug 46233 to make byacc work correctly on ia64 and other 64-bit arches. Also modify the mkstemp patch to coexist with the new patch.
Diffstat (limited to 'dev-util/byacc/files')
-rw-r--r--dev-util/byacc/files/byacc-1.9-ia64.patch24
-rw-r--r--dev-util/byacc/files/mkstemp.patch9
2 files changed, 24 insertions, 9 deletions
diff --git a/dev-util/byacc/files/byacc-1.9-ia64.patch b/dev-util/byacc/files/byacc-1.9-ia64.patch
new file mode 100644
index 000000000000..c10e88541287
--- /dev/null
+++ b/dev-util/byacc/files/byacc-1.9-ia64.patch
@@ -0,0 +1,24 @@
+--- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000
++++ byacc-1.9/defs.h Sat May 6 21:11:22 2000
+@@ -1,7 +1,8 @@
+ #include <assert.h>
+ #include <ctype.h>
+ #include <stdio.h>
+-
++#include <string.h>
++#include <stdlib.h>
+
+ /* machine-dependent definitions */
+ /* the following definitions are for the Tahoe */
+@@ -280,10 +281,3 @@
+ extern int errno;
+
+
+-/* system functions */
+-
+-extern void free();
+-extern char *calloc();
+-extern char *malloc();
+-extern char *realloc();
+-extern char *strcpy();
+
diff --git a/dev-util/byacc/files/mkstemp.patch b/dev-util/byacc/files/mkstemp.patch
index a4a30a342078..f037e331fb5b 100644
--- a/dev-util/byacc/files/mkstemp.patch
+++ b/dev-util/byacc/files/mkstemp.patch
@@ -1,14 +1,5 @@
--- main.c.orig 2002-12-17 14:28:54.000000000 -0500
+++ main.c 2002-12-17 14:29:31.000000000 -0500
-@@ -57,7 +57,7 @@
- short **derives;
- char *nullable;
-
--extern char *mktemp();
-+extern char *mkstemp();
- extern char *getenv();
-
-
@@ -264,9 +264,9 @@
text_file_name[len + 5] = 't';
union_file_name[len + 5] = 'u';