Attached is a small patch to include X11/Xlib.h only if configure has defined HAVE_X11_XLIB_H. (I'm running VLC on a Blackfin embedded system from Analog Devices).<br>