From 902ff4ca5cffc7dcfc4c6f4552f43189ad6adbaf Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sun, 23 Mar 2008 17:26:41 +0000 Subject: [PATCH] fixed compilation with --disable-x11 git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1041 7f574dfc-610e-0410-a909-a81674777703 --- ChangeLog | 3 +++ src/conky.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 + \