diff --git a/src/conky.h b/src/conky.h index 78f6e1f8..78f30d6f 100644 --- a/src/conky.h +++ b/src/conky.h @@ -317,7 +317,9 @@ int spaced_print(char *, int, const char *, int, ...) __attribute__((format(printf, 3, 5))); extern int inotify_fd; +#ifdef X11 #define TO_X 1 +#endif #define TO_STDOUT 2 #define TO_STDERR 4 #define OVERWRITE_FILE 8 diff --git a/src/fonts.c b/src/fonts.c index d9948de8..940277c6 100644 --- a/src/fonts.c +++ b/src/fonts.c @@ -183,4 +183,3 @@ void load_fonts(void) } } } - diff --git a/src/fonts.h b/src/fonts.h index 1c0093ea..932cb576 100644 --- a/src/fonts.h +++ b/src/fonts.h @@ -24,6 +24,7 @@ * along with this program. If not, see . * */ +#ifdef X11 #ifndef _FONTS_H #define _FONTS_H @@ -76,3 +77,4 @@ void free_fonts(void); void load_fonts(void); #endif /* _FONTS_H */ +#endif /* X11 */ diff --git a/src/x11.h b/src/x11.h index 4c275d63..45b209d1 100644 --- a/src/x11.h +++ b/src/x11.h @@ -1,3 +1,4 @@ +#ifdef X11 #ifndef X11_H_ #define X11_H_ @@ -85,3 +86,4 @@ void set_transparent_background(Window win); long get_x11_color(const char *); #endif /*X11_H_*/ +#endif /* X11 */