Index: third_party/harfbuzz-ng/src/test.cc |
diff --git a/third_party/harfbuzz-ng/src/test.cc b/third_party/harfbuzz-ng/src/test.cc |
index 1acb6ead70b245c53b92b61b5fc3bfe40c27de52..a8fe046f34c8ee1c4adcf2ed5e3ad1b17211bb53 100644 |
--- a/third_party/harfbuzz-ng/src/test.cc |
+++ b/third_party/harfbuzz-ng/src/test.cc |
@@ -31,7 +31,10 @@ |
#include "hb.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> |