mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
. Cope with gcc 3.x in a preprocessor conditional. PR: 47707, 47699 Submitted by: grog (PRs), "R. Lake" <rich@lakes.plus.com> (independently in email)
16 lines
671 B
C
16 lines
671 B
C
Index: src/share/tools/hprof/hprof_method.c
|
|
===================================================================
|
|
RCS file: /home/Java/CVS/JDK2/javasrc/src/share/tools/hprof/hprof_method.c,v
|
|
retrieving revision 1.3
|
|
diff -u -r1.3 hprof_method.c
|
|
--- src/share/tools/hprof/hprof_method.c 26 Oct 1999 20:42:59 -0000 1.3
|
|
+++ src/share/tools/hprof/hprof_method.c 20 Feb 2003 07:11:17 -0000
|
|
@@ -123,7 +123,7 @@
|
|
int stack_depth;
|
|
int trace_depth;
|
|
unsigned int hash = 0;
|
|
-#if defined __GNUC__ && (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)
|
|
+#if defined(__GNUC__) && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 8) || (__GNUC__ >= 3))
|
|
jlong total_time = 0;
|
|
#endif
|
|
int i;
|