summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/ktr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/ktr.h b/sys/sys/ktr.h
index fe087c7..9fd6d94 100644
--- a/sys/sys/ktr.h
+++ b/sys/sys/ktr.h
@@ -42,6 +42,15 @@
#include <machine/cpufunc.h>
/*
+ * Hack around due to egcs-1.1.2 not knowing what __func__ is.
+ */
+#ifdef __GNUC__
+#if __GNUC__ == 2 && __GNUC_MINOR__ == 91 /* egcs 1.1.2 */
+#define __func__ __FUNCTION__
+#endif
+#endif
+
+/*
* Trace classes
*/
#define KTR_GEN 0x00000001 /* General (TR) */
OpenPOWER on IntegriCloud