summaryrefslogtreecommitdiff
path: root/lang/gcc3/patches/patch-ar
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3/patches/patch-ar')
-rw-r--r--lang/gcc3/patches/patch-ar22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/gcc3/patches/patch-ar b/lang/gcc3/patches/patch-ar
new file mode 100644
index 00000000000..28912f166af
--- /dev/null
+++ b/lang/gcc3/patches/patch-ar
@@ -0,0 +1,22 @@
+$NetBSD: patch-ar,v 1.1 2004/05/28 22:28:09 shannonjr Exp $
+
+--- gcc/ada/osint.ads.orig 2002-10-23 01:33:27.000000000 -0600
++++ gcc/ada/osint.ads
+@@ -195,6 +195,17 @@ package Osint is
+ return String_Access;
+ -- Convert a canonical syntax file specification to host syntax.
+
++ function Relocate_Path
++ (Prefix : String;
++ Path : String) return String_Ptr;
++ -- Given an absolute path and a prefix, if Path starts with Prefix,
++ -- replace the Prefix substring with the root installation directory.
++ -- By default, try to compute the root installation directory by looking
++ -- at the executable name as it was typed on the command line and, if
++ -- needed, use the PATH environment variable.
++ -- If the above computation fails, return Path.
++ -- This function assumes that Prefix'First = Path'First
++
+ -------------------------
+ -- Search Dir Routines --
+ -------------------------