Index: third_party/harfbuzz-ng/src/test-size-params.cc |
diff --git a/third_party/harfbuzz-ng/src/test-size-params.cc b/third_party/harfbuzz-ng/src/test-size-params.cc |
index 947b5669a14544bb758d790ae1eae6421f200cb7..35d9e3c8e2579816fee7c711888f7f5764fd073d 100644 |
--- a/third_party/harfbuzz-ng/src/test-size-params.cc |
+++ b/third_party/harfbuzz-ng/src/test-size-params.cc |
@@ -32,7 +32,10 @@ |
#include "hb-ot.h" |
#ifdef HAVE_GLIB |
-#include <glib.h> |
+# include <glib.h> |
+# if !GLIB_CHECK_VERSION (2, 22, 0) |
+# define g_mapped_file_unref g_mapped_file_free |
+# endif |
#endif |
#include <stdlib.h> |
#include <stdio.h> |