Oh GACK! src-clean doesn't quite work that easily since cleandist rebuilds the
[unix-history] / gnu / usr.bin / cc25 / Freebsd.gcc258.patch.5
CommitLineData
0d12fbf7
PHK
1# Last updated 19940220 phk@login.dkuug.dk
2# These are patches to FreeBSD-current, to make it compile with gcc-2.5.8
3# Eventually these, or maybe better ones should make it into the FreeBSD
4# source tree.
5
6./gnu/usr.bin/cc/lib/tm.h
7 Define ____386BSD____ __FreeBSD__ if not so already.
8./gnu/usr.bin/rcs/lib/conf.h
9 make compilable by gcc2.5.8
0d12fbf7
PHK
10
11diff -U3 /usr/src-current/./gnu/usr.bin/cc/lib/tm.h ./gnu/usr.bin/cc/lib/tm.h
12--- /usr/src-current/./gnu/usr.bin/cc/lib/tm.h Mon Jan 10 23:48:12 1994
13+++ ./gnu/usr.bin/cc/lib/tm.h Fri Feb 18 00:54:15 1994
14@@ -2,6 +2,13 @@
15
16 /* This is tested by i386gas.h. */
17 #define YES_UNDERSCORES
18+#ifndef ____386BSD____
19+#define ____386BSD____
20+#endif
21+
22+#ifndef __FreeBSD__
23+#define __FreeBSD__
24+#endif
25
26 #include "i386/gstabs.h"
27
28diff -U3 /usr/src-current/./gnu/usr.bin/rcs/lib/conf.h ./gnu/usr.bin/rcs/lib/conf.h
29--- /usr/src-current/./gnu/usr.bin/rcs/lib/conf.h Fri Jun 18 06:22:13 1993
30+++ ./gnu/usr.bin/rcs/lib/conf.h Fri Feb 18 00:54:17 1994
31@@ -219,7 +219,7 @@
32 /* Adjust the following declarations as needed. */
33
34
35-#if __GNUC__ && !__STRICT_ANSI__
36+#if __GNUC__ && !__STRICT_ANSI__ && !__FreeBSD__
37 # define exiting volatile /* GCC extension: function cannot return */
38 #else
39 # define exiting