From 423e04fced48ab79950f0bb4b651ff816c183b07 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 27 Jun 2018 13:13:46 +0200 Subject: [PATCH] Avoid error/warning about implicit function declaration Function xorgGlxCreateVendor() is defined in glx_extinit.h, if this header is not included, we might get either error or warning. This header also need to be included after scrninststr.h header as it defines some structures used in glx_extinit.h (cherry picked from commit 8c6c584377feba0e3b99eecb3ef33b28cee318cb) --- unix/xserver/hw/vnc/xvnc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c index 88a5e422..9dd4e1c6 100644 --- a/unix/xserver/hw/vnc/xvnc.c +++ b/unix/xserver/hw/vnc/xvnc.c @@ -47,6 +47,9 @@ from the X Consortium. #include #include #include "scrnintstr.h" +#if XORG >= 120 +#include "glx_extinit.h" +#endif #include "servermd.h" #include "fb.h" #include "mi.h" -- 2.39.5