diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-11 22:50:24 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-11 22:50:24 +0100 |
commit | 5b972d5b297203a7717a4d8f2058867dfac3ab9e (patch) | |
tree | a8ff9f27f6711a0989a1a9f3fd04155a50fcf7ad | |
parent | b5476c81d2ab27dd4a46064d3fa45556630fd3cf (diff) | |
download | cygnal-5b972d5b297203a7717a4d8f2058867dfac3ab9e.tar.gz cygnal-5b972d5b297203a7717a4d8f2058867dfac3ab9e.tar.bz2 cygnal-5b972d5b297203a7717a4d8f2058867dfac3ab9e.zip |
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>
-rw-r--r-- | winsup/cygwin/gmon.h | 5 |
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; |