mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05: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:
parent
d2cf6912b9
commit
e3cb8d6a77
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user