Skip to content

Commit 3ff9213

Browse files
committed
Fix build with FEATURE_PERFTRACING_STANDALONE_PAL (debug libs)
1 parent e4251b1 commit 3ff9213

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/native/eventpipe/ds-ipc-pal-socket.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,27 @@ ep_rt_object_array_free (void *ptr)
123123
if (ptr)
124124
free (ptr);
125125
}
126+
127+
static
128+
inline
129+
ep_char8_t *
130+
ep_rt_utf8_string_dup (const ep_char8_t *str)
131+
{
132+
if (!str)
133+
return NULL;
134+
135+
return strdup (str);
136+
}
137+
138+
static
139+
inline
140+
void
141+
ep_rt_utf8_string_free (ep_char8_t *str)
142+
{
143+
if (str)
144+
free (str);
145+
}
146+
126147
#endif
127148

128149
static bool _ipc_pal_socket_init = false;

0 commit comments

Comments
 (0)