diff --git a/src/tailhead.cc b/src/tailhead.cc index 86df7eb08..2572ca6ad 100644 --- a/src/tailhead.cc +++ b/src/tailhead.cc @@ -175,7 +175,7 @@ static void print_tailhead(const char *type, struct text_object *obj, char *p, endofstring = strlen(p); } } else if (strcmp(type, "tail") == 0) { - fseek(fp, -p_max_size, SEEK_END); + fseek(fp, (long) -p_max_size, SEEK_END); i = fread(p, 1, p_max_size - 1, fp); tailstring(p, i, ht->wantedlines); } else { diff --git a/src/x11.h b/src/x11.h index 69905435d..5c7e1e0f4 100644 --- a/src/x11.h +++ b/src/x11.h @@ -168,6 +168,7 @@ class own_window_setting : public conky::simple_config_setting { own_window_setting() : Base("own_window", false, false) {} }; +#ifdef BUILD_XDBE class use_xdbe_setting : public conky::simple_config_setting { typedef conky::simple_config_setting Base; @@ -180,6 +181,7 @@ class use_xdbe_setting : public conky::simple_config_setting { use_xdbe_setting() : Base("double_buffer", false, false) {} }; +#else class use_xpmdb_setting : public conky::simple_config_setting { typedef conky::simple_config_setting Base; @@ -191,6 +193,7 @@ class use_xpmdb_setting : public conky::simple_config_setting { public: use_xpmdb_setting() : Base("double_buffer", false, false) {} }; +#endif struct colour_traits { static const lua::Type type = lua::TSTRING;