6f0b523996
meant to be used on archs that have gcc4 in base, this doesn't require a full gcc build from ports, and provides libgfortran as a subpackage. idea from espie some months ago.
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
$OpenBSD: patch-gcc_prefix_c,v 1.1.1.1 2010/10/10 17:39:06 steven Exp $
|
|
--- gcc/prefix.c.orig Sat Dec 17 21:45:46 2005
|
|
+++ gcc/prefix.c Mon Jun 14 19:23:04 2010
|
|
@@ -99,7 +99,7 @@ get_key_value (char *key)
|
|
#endif
|
|
|
|
if (prefix == 0)
|
|
- prefix = getenv (temp = concat (key, "_ROOT", NULL));
|
|
+ prefix = getenv (temp = concat (key, "_ROOT", (void *)0));
|
|
|
|
if (prefix == 0)
|
|
prefix = std_prefix;
|
|
@@ -223,7 +223,7 @@ translate_name (char *name)
|
|
together. */
|
|
|
|
old_name = name;
|
|
- name = concat (prefix, &name[keylen + 1], NULL);
|
|
+ name = concat (prefix, &name[keylen + 1], (void *)0);
|
|
free (old_name);
|
|
}
|
|
|
|
@@ -261,11 +261,11 @@ update_path (const char *path, const char *key)
|
|
|
|
if (key[0] != '$')
|
|
{
|
|
- key = concat ("@", key, NULL);
|
|
+ key = concat ("@", key, (void *)0);
|
|
free_key = true;
|
|
}
|
|
|
|
- result = concat (key, &path[len], NULL);
|
|
+ result = concat (key, &path[len], (void *)0);
|
|
if (free_key)
|
|
free ((char *) key);
|
|
result = translate_name (result);
|