Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-08-20 22:14:57 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-08-20 22:14:57 +0300
commit1b3a0effd40a0d75887ee9d2909dd4e8c5f20d37 (patch)
tree3348b769be24aa8c5ec2b068dd2cb057c51ccef0 /winsup/utils/profiler.cc
parentc1f8a7b502d96fcd9ce4adb59e210399417fb3b3 (diff)
Cygwin: profiler: Fix linking when building with -DDEBUGGING
CloseHandle gets redefined to a macro calling an internal function in debug.h when building with -DDEBUGGING, but profiler has no access to that function. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/utils/profiler.cc')
-rw-r--r--winsup/utils/profiler.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/utils/profiler.cc b/winsup/utils/profiler.cc
index 2be7baf74..985946e5f 100644
--- a/winsup/utils/profiler.cc
+++ b/winsup/utils/profiler.cc
@@ -39,6 +39,11 @@ typedef uint16_t u_int16_t; // Non-standard sized type needed by ancient gmon.h
#undef ExitThread
#endif
+/* Undo this #define from debug.h. */
+#ifdef CloseHandle
+#undef CloseHandle
+#endif
+
#define SCALE_SHIFT 2 // == 4 bytes of address space per bucket
#define MS_VC_EXCEPTION 0x406D1388 // thread name notification from child