x11_helper: guard content with #ifdef HAVE_X11_XLIB_H

parent fc3a434d
......@@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#if !defined(_X11_HELPER_H_)
#define _X11_HELPER_H_
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
typedef struct _x11_helper {
......@@ -39,3 +41,5 @@ int ms_x11_helper_destroy_window(MSX11Helper* x11);
int ms_x11_helper_uninit(MSX11Helper* x11);
#endif
#endif
......@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_X11_XLIB_H
#include "mediastreamer2/x11_helper.h"
#include "mediastreamer2/mscommon.h"
#include <ortp/port.h>
......@@ -91,3 +92,4 @@ int ms_x11_helper_uninit(MSX11Helper* x11) {
return 0;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment