gmon.h: Fix type of gmonparam state member

gmonparam::state is used in calls to Win32 Interlocked functions.
Having this defined as int breaks the build on i686.  Redefine as
LONG (same size and correct type on all platforms) to make gcc happy.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-03-11 22:50:24 +01:00
parent b5476c81d2
commit 5b972d5b29
1 changed files with 4 additions and 1 deletions

View File

@ -65,6 +65,9 @@ extern void mcount(void);
#ifdef __MINGW32__ #ifdef __MINGW32__
#include <_bsd_types.h> #include <_bsd_types.h>
#endif /* __MINGW32__*/ #endif /* __MINGW32__*/
#ifdef __CYGWIN__
#include <winsup.h>
#endif
/* /*
* Structure prepended to gmon.out profiling data file. * Structure prepended to gmon.out profiling data file.
@ -153,7 +156,7 @@ struct rawarc {
* The profiling data structures are housed in this structure. * The profiling data structures are housed in this structure.
*/ */
struct gmonparam { struct gmonparam {
volatile int state; volatile LONG state;
u_short *kcount; u_short *kcount;
size_t kcountsize; size_t kcountsize;
u_short *froms; u_short *froms;