[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/android c09dca3fb03 5/9: Fix sfntfont.c build without mmap
From: |
Po Lu |
Subject: |
feature/android c09dca3fb03 5/9: Fix sfntfont.c build without mmap |
Date: |
Sun, 19 Feb 2023 09:14:47 -0500 (EST) |
branch: feature/android
commit c09dca3fb0369a92a7cfb2a5ec3102a6315b8cc2
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix sfntfont.c build without mmap
* src/sfntfont.c (sfntfont_close): Don't unlink font if mmap is
not available.
---
src/sfntfont.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/sfntfont.c b/src/sfntfont.c
index bb816fabd3e..b9141b05aad 100644
--- a/src/sfntfont.c
+++ b/src/sfntfont.c
@@ -2565,6 +2565,8 @@ sfntfont_close (struct font *font)
xfree (info->cvt);
xfree (info->interpreter);
+#ifdef HAVE_MMAP
+
/* Unlink INFO. */
next = &open_fonts;
@@ -2575,6 +2577,8 @@ sfntfont_close (struct font *font)
*next = info->next;
info->next = NULL;
+#endif /* HAVE_MMAP */
+
sfntfont_free_outline_cache (&info->outline_cache);
sfntfont_free_raster_cache (&info->raster_cache);
}
- feature/android updated (c8f49c9276d -> 05791d09f65), Po Lu, 2023/02/19
- feature/android 0aa19e993b1 2/9: Fix gamegrid.el with high resolution displays, Po Lu, 2023/02/19
- feature/android c09dca3fb03 5/9: Fix sfntfont.c build without mmap,
Po Lu <=
- feature/android 47dbdb06dc4 4/9: Improve Android documentation, Po Lu, 2023/02/19
- feature/android 0998ab3ade7 3/9: Report both sides of the region to the input method upon setup, Po Lu, 2023/02/19
- feature/android f3196052070 7/9: More parallel build fixes, Po Lu, 2023/02/19
- feature/android 05791d09f65 9/9: * cross/Makefile.in (src/libemacs.so): Depend on libgnu.a., Po Lu, 2023/02/19
- feature/android 585ee91b21f 8/9: More fixes to parallel Make, Po Lu, 2023/02/19
- feature/android efc46330aa1 1/9: Allow opening more files in emacsclient on Android, Po Lu, 2023/02/19
- feature/android 18f723faa85 6/9: Fix parallel compilation of Android port, Po Lu, 2023/02/19