diff --git a/unix/draw.c b/unix/draw.c index f084ed4a..7396d33f 100644 --- a/unix/draw.c +++ b/unix/draw.c @@ -736,7 +736,7 @@ static void addAttr(uiDrawTextLayout *layout, PangoAttribute *attr, intmax_t sta // these attributes are only supported on 1.38 and higher; we need to support 1.36 // use dynamic linking to make them work at least on newer systems // TODO warn programmers -staticPangoAttribute *(*newFGAlphaAttr)(guint16 alpha) = NULL; +static PangoAttribute *(*newFGAlphaAttr)(guint16 alpha) = NULL; static gboolean tried138 = FALSE; // note that we treat any error as "the 1.38 symbols aren't there" (and don't care if dlclose() failed) diff --git a/unix/uipriv_unix.h b/unix/uipriv_unix.h index d779f9be..c087e298 100644 --- a/unix/uipriv_unix.h +++ b/unix/uipriv_unix.h @@ -6,6 +6,7 @@ // TODO make this unnecessary #define _GNU_SOURCE #include +#include // see drawtext.c #include #include "../ui.h" #include "../ui_unix.h"