1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Compile xprop_to_string only #ifdef HAVE_X11

If ELinks was configured --without-x, the build failed at
xprop_to_string:

.../src/osdep/osdep.c:500: error: expected ‘)’ before ‘*’ token

Fix by moving xprop_to_string into the #ifdef HAVE_X11 section.
Reported by Thomas Adam.
This commit is contained in:
Kalle Olavi Niemitalo 2011-04-16 13:03:27 +03:00 committed by Kalle Olavi Niemitalo
parent d2cf6912b9
commit e3cb8d6a77

View File

@ -490,7 +490,6 @@ catch_x_error(void)
x_error = 1;
return 0;
}
#endif
/** Convert a STRING XTextProperty to a string in the specified codepage.
*
@ -539,6 +538,7 @@ xprop_to_string(Display *display, const XTextProperty *text_prop, int to_cp)
XFreeStringList(list);
return ret;
}
#endif /* HAVE_X11 */
unsigned char *
get_window_title(int codepage)