diff options
author | benno <benno@FreeBSD.org> | 2001-10-15 13:30:04 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2001-10-15 13:30:04 +0000 |
commit | 2c969f987f747e290254c587779a917f0486e6de (patch) | |
tree | f5102a835e7db9e61f01735d8683e2472df028cf /sys/sys/ktr.h | |
parent | 2fe7725b1372c1bbd574e2d69d3acf7d06dddb75 (diff) | |
download | FreeBSD-src-2c969f987f747e290254c587779a917f0486e6de.zip FreeBSD-src-2c969f987f747e290254c587779a917f0486e6de.tar.gz |
Add a hack to get around the fact that egcs 1.1.2 (which I'm using to build
my powerpc kernels on NetBSD/macppc 1.5) doesn't know of the __func__ macro.
Diffstat (limited to 'sys/sys/ktr.h')
-rw-r--r-- | sys/sys/ktr.h | 9 |
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) */ |