Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions open-vm-tools/lib/rpcChannel/glib_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@

void *g_malloc0(size_t s) { return Util_SafeCalloc(1, s); }
void *g_malloc0_n(size_t n, size_t s) { return Util_SafeCalloc(n, s); }
/* GLib defines g_free as a macro, so undefine it before providing
* our own stub implementation. */
#undef g_free
void g_free(void *p) { free(p); }

void g_mutex_init(GMutex *mutex) { }
Expand Down