summaryrefslogtreecommitdiff
path: root/lang/gpc/files/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gpc/files/patch-al')
-rw-r--r--lang/gpc/files/patch-al41
1 files changed, 41 insertions, 0 deletions
diff --git a/lang/gpc/files/patch-al b/lang/gpc/files/patch-al
new file mode 100644
index 000000000000..5d5da64f57d6
--- /dev/null
+++ b/lang/gpc/files/patch-al
@@ -0,0 +1,41 @@
+*** prefix.c.orig Fri Feb 6 16:04:22 1998
+--- prefix.c Thu Mar 23 15:40:38 2000
+***************
+*** 232,238 ****
+ char *name;
+ {
+ char code = name[0];
+! char *key, *prefix = 0;
+ int keylen;
+
+ if (code != '@' && code != '$')
+--- 232,238 ----
+ char *name;
+ {
+ char code = name[0];
+! char *key, *prefix = 0, *oldname = name;
+ int keylen;
+
+ if (code != '@' && code != '$')
+***************
+*** 272,278 ****
+ prefix[strlen (prefix) - 1] = 0;
+ }
+
+! return concat (prefix, name, NULL_PTR);
+ }
+
+ /* Update PATH using KEY if PATH starts with PREFIX. */
+--- 272,283 ----
+ prefix[strlen (prefix) - 1] = 0;
+ }
+
+! name = concat (prefix, name, NULL_PTR);
+!
+! if (!strcmp (name, oldname))
+! return 0;
+!
+! return name;
+ }
+
+ /* Update PATH using KEY if PATH starts with PREFIX. */