summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/gmon.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/gmon.h b/winsup/cygwin/gmon.h
index b0fb479e2..fa648a236 100644
--- a/winsup/cygwin/gmon.h
+++ b/winsup/cygwin/gmon.h
@@ -65,6 +65,9 @@ extern void mcount(void);
#ifdef __MINGW32__
#include <_bsd_types.h>
#endif /* __MINGW32__*/
+#ifdef __CYGWIN__
+#include <winsup.h>
+#endif
/*
* Structure prepended to gmon.out profiling data file.
@@ -153,7 +156,7 @@ struct rawarc {
* The profiling data structures are housed in this structure.
*/
struct gmonparam {
- volatile int state;
+ volatile LONG state;
u_short *kcount;
size_t kcountsize;
u_short *froms;