fix for building with --disable-x11
authorPhil Sutter <phil@nwl.cc>
Sun, 22 Feb 2009 02:07:14 +0000 (03:07 +0100)
committerPhil Sutter <phil@nwl.cc>
Sun, 22 Feb 2009 02:08:28 +0000 (03:08 +0100)
src/conky.c

index 413f056..03a26da 100644 (file)
@@ -7073,6 +7073,7 @@ static _Bool append_works(const char *path)
        return 1;
 }
 
+#ifdef X11
 static void X11_initialisation(void)
 {
        output_methods |= TO_X;
@@ -7080,6 +7081,7 @@ static void X11_initialisation(void)
        set_default_configurations_for_x();
        x_initialised = YES;
 }
+#endif /* X11 */
 
 static void load_config_file(const char *f)
 {