1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/lang/gcc28/files/patch-04
David E. O'Brien 8c54814372 * Minor bug fixes from OpenBSD (and some stuff to ease diff'ing in the future)
* Some initial support for FreeBSD-alpha
* Add some optimizations required by g77, which still might be of some use
  to adventuring C/C++ programmers.

Obtained from:	OpenBSD (parts)
1998-08-13 17:55:40 +00:00

21 lines
619 B
Plaintext

--- choose-temp.c.orig Thu Dec 4 06:17:56 1997
+++ choose-temp.c Tue Aug 11 04:05:05 1998
@@ -107,12 +107,17 @@
base = try (getenv ("TMP"), base);
base = try (getenv ("TEMP"), base);
+#ifdef COMMENT_OUT /* XXX - P_tmpdir is not /tmp in 4.4BSD */
#ifdef P_tmpdir
base = try (P_tmpdir, base);
#endif
+#endif /* XXX */
/* Try /usr/tmp, then /tmp. */
+#ifdef COMMENT_OUT /* XXX - want /tmp used, peroid. Sometimes pkg_add can
+ create a /usr/tmp, so beware. */
base = try (usrtmp, base);
+#endif /* XXX */
base = try (tmp, base);
/* If all else fails, use the current directory! */