Index: third_party/harfbuzz-ng/src/test-would-substitute.cc |
diff --git a/third_party/harfbuzz-ng/src/test-would-substitute.cc b/third_party/harfbuzz-ng/src/test-would-substitute.cc |
index 4731e265607c3a303bd8ce4edcc99474fa254f90..8ea87cdf39716f05930a95cea220412066f5149d 100644 |
--- a/third_party/harfbuzz-ng/src/test-would-substitute.cc |
+++ b/third_party/harfbuzz-ng/src/test-would-substitute.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> |