summaryrefslogtreecommitdiff
path: root/gdbsupport/common-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/common-utils.h')
-rw-r--r--gdbsupport/common-utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdbsupport/common-utils.h b/gdbsupport/common-utils.h
index 4429f086fce..28c08ee9766 100644
--- a/gdbsupport/common-utils.h
+++ b/gdbsupport/common-utils.h
@@ -59,7 +59,11 @@ xfree (T *ptr)
data type. Use operator delete instead.");
if (ptr != NULL)
- free (ptr); /* ARI: free */
+#ifdef GNULIB_NAMESPACE
+ GNULIB_NAMESPACE::free (ptr); /* ARI: free */
+#else
+ free (ptr); /* ARI: free */
+#endif
}