mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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.
(cherry picked from commit e3cb8d6a77
)
This commit is contained in:
parent
bd777335e0
commit
2853e53646
@ -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