summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-07-09 22:05:46 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-07-09 22:05:46 +0200
commit79ce6547ce78c765290db574f1ff4930de862ba0 (patch)
tree29229a15ab20287554f528002a0b872ca3bad6a8 /src/drivers
parentd9d3406be8640e30108dcef6d8b1111635fa189a (diff)
Fix non-xft build referencing fl_get_font_xfld() (#461)
This is only one part of issue 461 which describes two build errors on "Raspberry Pi4 bullseye". It turned out that the build didn't find Xft.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
index b1a62b29e..09e923b40 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
@@ -56,6 +56,9 @@ extern const char *fl_bg;
extern const char *fl_bg2;
// end of extern additions workaround
+#if !USE_XFT
+extern char *fl_get_font_xfld(int fnum, int size);
+#endif
XIM Fl_X11_Screen_Driver::xim_im = 0;