From ece6c8e3835be50c0d4807d6a4ab95135070e714 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 22 May 2014 10:25:45 +0000 Subject: * gmon.h: Pull in profile.h. Explain why. --- winsup/cygwin/gmon.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'winsup/cygwin/gmon.h') diff --git a/winsup/cygwin/gmon.h b/winsup/cygwin/gmon.h index 919a1f21c..0932ed94c 100644 --- a/winsup/cygwin/gmon.h +++ b/winsup/cygwin/gmon.h @@ -44,7 +44,23 @@ #define __P(x) x #endif +/* On POSIX systems, profile.h is a KRB5 header. To avoid collisions, just + pull in profile.h's content here. The profile.h header won't be provided + by Mingw-w64 anymore at one point. */ +#if 0 #include +#else +#ifndef _WIN64 +#define _MCOUNT_CALL __attribute__ ((regparm (2))) +extern void _mcount(void); +#else +#define _MCOUNT_CALL +extern void mcount(void); +#endif +#define _MCOUNT_DECL __attribute__((gnu_inline)) __inline__ \ + void _MCOUNT_CALL _mcount_private +#define MCOUNT +#endif #ifdef __MINGW32__ #include <_bsd_types.h> -- cgit v1.2.3