diff --git a/ChangeLog b/ChangeLog index 417635d8..30aa3e2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # $Id$ +2008-03-23 + * Fixed compilation with --disable-x11 + 2008-03-22 * Conky 1.5.0 released * Smapi review: improved code, fixed memleaks and smapi_bat_perc when diff --git a/src/conky.c b/src/conky.c index f8a0b871..1b0fd9fb 100644 --- a/src/conky.c +++ b/src/conky.c @@ -127,6 +127,8 @@ static void print_version() exit(0); } +static char *suffixes[] = { "B", "kiB", "MiB", "GiB", "TiB", "PiB", "" }; + #ifdef X11 /* text size */ @@ -164,8 +166,6 @@ static int selected_font = 0; static int font_count = -1; struct font_list *fonts = NULL; -static char *suffixes[] = { "B", "kiB", "MiB", "GiB", "TiB", "PiB", "" }; - #ifdef XFT #define font_height() (use_xft ? (fonts[selected_font].xftfont->ascent + \