diff options
author | ed <ed@FreeBSD.org> | 2010-02-18 14:28:38 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-02-18 14:28:38 +0000 |
commit | b53f45c4670742f79dcebb64f9b8d86a546c6650 (patch) | |
tree | ee3d049f536e40e0d63cf50f3d7143774cde72af /sys/amd64 | |
parent | 93bada478f1c4bbf241686e05ae90eedebb88c5d (diff) | |
download | FreeBSD-src-b53f45c4670742f79dcebb64f9b8d86a546c6650.zip FreeBSD-src-b53f45c4670742f79dcebb64f9b8d86a546c6650.tar.gz |
Allow the pmap code to be built with GCC from FreeBSD 7 again.
This patch basically gives us the best of both worlds. Instead of
forcing the compiler to emulate GNU-style inline semantics even though
we're using ISO C99, it will only use GNU-style inlining when the
compiler is configured that way (__GNUC_GNU_INLINE__).
Tested by: jhb
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 9bc1f8c..bbb50a8 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -151,7 +151,11 @@ __FBSDID("$FreeBSD$"); #endif #if !defined(DIAGNOSTIC) +#ifdef __GNUC_GNU_INLINE__ +#define PMAP_INLINE inline +#else #define PMAP_INLINE extern inline +#endif #else #define PMAP_INLINE #endif |