From 4210f02589371b549f7a44c2549ea6fa1dc2ec1e Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 12 Jun 2006 20:35:59 +0000 Subject: [PATCH] Forcefully turn off GPROF in this file if it is enabled as GPROF's attempt to use a macro for 'ret' doesn't play well with the wrappers trying to implement 'Pascal-style' calling conventions. --- sys/compat/ndis/winx32_wrap.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/ndis/winx32_wrap.S b/sys/compat/ndis/winx32_wrap.S index 9a6b3cdf5807..065d409f0b52 100644 --- a/sys/compat/ndis/winx32_wrap.S +++ b/sys/compat/ndis/winx32_wrap.S @@ -32,6 +32,11 @@ * $FreeBSD$ */ +/* The 'ret' macro doesn't work in this file if GPROF is enabled. */ +#ifdef GPROF +#undef GPROF +#endif + #include /*