]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin syswrap: make kdebug_trace_string helpers conditional
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 4 May 2026 06:21:32 +0000 (08:21 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 4 May 2026 06:21:32 +0000 (08:21 +0200)
Only for OSX 10.11 and later. Part of cleanup for
https://bugs.kde.org/show_bug.cgi?id=519604

coregrind/m_syswrap/syswrap-darwin.c

index 68c2d544aabd25bdc0a83bb36de3fcae76100754..6f2151666b25b47297a4970988092bb992dd3b0d 100644 (file)
@@ -721,6 +721,8 @@ void VG_(show_open_ports)(void)
    VG_(message)(Vg_UserMsg, "\n");
 }
 
+/* helpers used by PRE(kdebug_trace_string) added in OSX 10.11 */
+#if DARWIN_VERS >= DARWIN_10_11
 
 /* ---------------------------------------------------------------------
    kdebug helpers
@@ -904,6 +906,8 @@ static const HChar *kdebug_debugid(ULong did)
   return buf;
 }
 
+#endif
+
 
 /* ---------------------------------------------------------------------
    sync_mappings